]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
client: when STATX_NLINK is requested request FsLs caps 38950/head
authorJeff Layton <jlayton@redhat.com>
Fri, 20 Nov 2020 23:43:31 +0000 (18:43 -0500)
committerVicente Cheng <freeze.bilsted@gmail.com>
Mon, 18 Jan 2021 14:38:12 +0000 (14:38 +0000)
commit38d9db6068898f5fa521846a6196f6a1f5f6ba5e
treea495c5014e94d582391fa96df6664c39c9b70733
parent4ec9ab4bd687c14ed13dcc989bf384c03974a105
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>
(cherry picked from commit e2ea2214cbb1ff4bd7332bb28db4f3477efb37df)
src/client/Client.cc