/* get the key data for an FSDEF index record - this is the name of the netfs for which this entry is created  */
static uint16_t fscache_fsdef_netfs_get_key(const void *cookie_netfs_data, void *buffer, uint16_t bufmax)
/* get the key data for an FSDEF index record - this is the name of the netfs for which this entry is created  */
static uint16_t fscache_fsdef_netfs_get_key(const void *cookie_netfs_data, void *buffer, uint16_t bufmax)
{
	const struct fscache_netfs *netfs = cookie_netfs_data;
	unsigned klen;
	_enter("{%s.%u},", netfs->name, netfs->version);
	klen = strlen(netfs->name);
	if (klen > bufmax)
		return 0;
	memcpy(buffer, netfs->name, klen);
	return klen;
}