]> 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)
committerJeff Layton <jlayton@kernel.org>
Fri, 29 Apr 2022 20:06:35 +0000 (16:06 -0400)
commit04d8c574cd851cc16bb293b4d26b44703021e449
tree5e185dd7727a23d7d4a3b0e520d45156025e6aaa
parentaf169497f90fad11cf7542a74cdb67a20dd630be
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