From: Steven Whitehouse <swhiteho@redhat.com>
To: Dan Magenheimer <dan.magenheimer@oracle.com>
Cc: linux-kernel@vger.kernel.org
Subject: Cleancache and shared filesystems
Date: Fri, 27 May 2011 14:51:40 +0100 [thread overview]
Message-ID: <1306504300.2857.14.camel@menhir> (raw)
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.
next reply other threads:[~2011-05-27 13:50 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-27 13:51 Steven Whitehouse [this message]
2011-05-27 15:31 ` Dan Magenheimer
2011-05-27 16:19 ` Steven Whitehouse
2011-05-27 16:31 ` Dan Magenheimer
2011-05-27 23:33 ` Joel Becker
2011-05-31 8:58 ` Steven Whitehouse
2011-05-31 15:13 ` Dan Magenheimer
2011-05-31 14:51 ` Dan Magenheimer
2011-05-31 21:54 ` Joel Becker
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1306504300.2857.14.camel@menhir \
--to=swhiteho@redhat.com \
--cc=dan.magenheimer@oracle.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®