* change attribute support in libcephfs
@ 2016-07-14 14:32 Jeff Layton
0 siblings, 0 replies; only message in thread
From: Jeff Layton @ 2016-07-14 14:32 UTC (permalink / raw)
To: Sage Weil; +Cc: Ceph Development, Gregory Farnum
Hi Sage,
Greg suggested I run this by you before we rely on it and I'm cc'ing
ceph-devel in case anyone else has thoughts.
In the ceph userland code, the client Inode structure has a "version"
field that is a uint64_t. That appears to get incremented whenever
something changes in the data or metadata for the inode. If so, then we
may just be able to expose that as the stx_version field in a
ceph_statx() call, which ganesha could then use as a NFSv4 change
attribute.
The big question mark there of course is whether that will also work
for directories. It looks like anytime we do a getattr on a directory,
the MDS will do a gather of all the dirfrags and the version field will
change if something has changed.
Is that the case? Any other caveats to taking this approach that you
can think of?
--
Jeff Layton <jlayton@redhat.com>
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-07-14 14:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-14 14:32 change attribute support in libcephfs Jeff Layton
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.