/* set the key for the volume index entry  */
static uint16_t afs_volume_cache_get_key(const void *cookie_netfs_data, void *buffer, uint16_t buflen)
/* set the key for the volume index entry  */
static uint16_t afs_volume_cache_get_key(const void *cookie_netfs_data, void *buffer, uint16_t buflen)
{
	const struct afs_volume *volume = cookie_netfs_data;
	uint16_t klen;
	_enter("{%u},%p,%u", volume->type, buffer, bufmax);
	klen = sizeof(volume->type);
	if (klen > bufmax)
		return 0;
	memcpy(buffer, &volume->type, sizeof(volume->type));
	_leave(" = %u", klen);
	return klen;
}