]> 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)
committerVicente Cheng <freeze.bilsted@gmail.com>
Mon, 18 Jan 2021 14:36:38 +0000 (14:36 +0000)
commit4ec9ab4bd687c14ed13dcc989bf384c03974a105
tree5807f7c2227ccf5b7a86c7d4c32651090513fdef
parent6d4e43d2dc7a0706a079a6cc49169ec53ebd7a30
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>
(cherry picked from commit 3db582b1416dc170a0e25c957166d7bdc58e4c67)

Conflicts:
src/client/Client.cc
  - keep hidden because we still need it in nautilus
  - drop some code because we did not introduce the
            following features: ceph.mirror.info and rsnaps
src/client/Client.cc
src/client/Client.h