]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
client: when STATX_NLINK is requested request FsLs caps 38355/head
authorJeff Layton <jlayton@redhat.com>
Fri, 20 Nov 2020 23:43:31 +0000 (18:43 -0500)
committerJeff Layton <jlayton@redhat.com>
Fri, 20 Nov 2020 23:46:52 +0000 (18:46 -0500)
commite2ea2214cbb1ff4bd7332bb28db4f3477efb37df
treeb9d51b1206cb37a2da5bbc56c4f46eadc1c71fd7
parent3db582b1416dc170a0e25c957166d7bdc58e4c67
client: when STATX_NLINK is requested request FsLs caps

We currently determine the getattr request mask prior to doing the
lookup, so we don't necessarily know whether the terminal entry is
a directory or something else.

Directory nlink count is governed by the dirstats, and those are
under Fs caps. Request both Fs and Ls if the request mask includes
STATX_NLINK.

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