]> git-server-git.apps.pok.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>
Wed, 18 May 2022 12:07:02 +0000 (14:07 +0200)
commita78a3bec918187a3a995b60d1ec450fe9eac8777
treee84df3882faf28d4ad3a6f06641f8cba4f0e0230
parente4a9e6b170f5b5d4f0e832526ecf5273c23df7a0
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