]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
client: ensure we take Fs caps when querying dirstat vxattrs
authorJeff Layton <jlayton@redhat.com>
Fri, 20 Nov 2020 15:39:58 +0000 (10:39 -0500)
committerJeff Layton <jlayton@redhat.com>
Fri, 20 Nov 2020 23:38:38 +0000 (18:38 -0500)
commit3db582b1416dc170a0e25c957166d7bdc58e4c67
treed50d8096969fee089c65169bf31f05c80272d7ca
parent66f647b00b2be94f1c1f1f5722dae6ca64073ab8
client: ensure we take Fs caps when querying dirstat vxattrs

Dirstats values are only updated when Fs caps are held, so ensure that
we request those caps in the _getattr call when querying for them.

Drop the old XATTR_NAME_CEPH helper and rename XATTR_NAME_CEPH2 to
XATTR_NAME_CEPH. Add a new VXATTR_DIRSTAT field and add that to all of
the dirstats vxattrs.

Fixes: https://tracker.ceph.com/issues/48313
Signed-off-by: Jeff Layton <jlayton@redhat.com>
src/client/Client.cc
src/client/Client.h