Cleancache and shared filesystems
From: Steven Whitehouse
Date: Fri May 27 2011 - 09:50:11 EST
Hi,
I'm trying to figure out what I would need to do in order to get GFS2 to
work with cleancache. Looking at the OCFS2 implementation leaves me with
some questions about how this is supposed to work. The docs say that the
cleancache_init_shared_fs() function is supposed to take a 128 bit UUID
plus the sb.
In OCFS2 it is passed a pointer to a 32 bit little endian quantity as
the UUID:
__le32 uuid_net_key;
...
memcpy(&uuid_net_key, di->id2.i_super.s_uuid, sizeof(uuid_net_key));
...
cleancache_init_shared_fs((char *)&uuid_net_key, sb);
and in the Xen backend driver this then appears to be dereferenced as if
its two 64 bit values, which doesn't look right to me.
Also, since the sb has a UUID field in it anyway, is there some reason
why that cannot be used directly rather than passing the uuid as a
separate variable?
Steve.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/