]> git.apps.os.sepia.ceph.com Git - ceph-client.git/commit
ceph: allow `ceph.dir.rctime' xattr to be updatable
authorVenky Shankar <vshankar@redhat.com>
Thu, 10 Mar 2022 14:34:19 +0000 (09:34 -0500)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 25 Apr 2022 09:07:47 +0000 (11:07 +0200)
commitae420da77c356eefb15fbc092b8aa52f323ac78d
treea17caa6447d2d6a4ed7f3982e1ee5484a7973ef1
parentc5daf5a45ba89efb46923c48fec0a254d2588654
ceph: allow `ceph.dir.rctime' xattr to be updatable

`rctime' has been a pain point in cephfs due to its buggy
nature - inconsistent values reported and those sorts.
Fixing rctime is non-trivial needing an overall redesign
of the entire nested statistics infrastructure.

As a workaround, PR

     http://github.com/ceph/ceph/pull/37938

allows this extended attribute to be manually set. This allows
users to "fixup" inconsistent rctime values. While this sounds
messy, its probably the wisest approach allowing users/scripts
to workaround buggy rctime values.

The above PR enables Ceph MDS to allow manually setting
rctime extended attribute with the corresponding user-land
changes. We may as well allow the same to be done via kclient
for parity.

Reviewed-by: Xiubo Li <xiubli@redhat.com>
Signed-off-by: Venky Shankar <vshankar@redhat.com>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
fs/ceph/xattr.c