diff options
author | Luis Henriques <lhenriques@suse.com> | 2018-05-21 11:27:29 +0200 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2018-06-04 20:45:56 +0200 |
commit | 8c6286f1c69743ebdb2ee15f9165f9c4d44eef49 (patch) | |
tree | 12d125d8946dbdbb57ad41847d397ebe00d0a0c6 /include | |
parent | ceph: support file lock on directory (diff) | |
download | linux-8c6286f1c69743ebdb2ee15f9165f9c4d44eef49.tar.xz linux-8c6286f1c69743ebdb2ee15f9165f9c4d44eef49.zip |
ceph: fix st_nlink stat for directories
Currently, calling stat on a cephfs directory returns 1 for st_nlink.
This behaviour has recently changed in the fuse client, as some
applications seem to expect this value to be either 0 (if it's
unlinked) or 2 + number of subdirectories. This behaviour was changed
in the fuse client with commit 67c7e4619188 ("client: use common
interp of st_nlink for dirs").
This patch modifies the kernel client to have a similar behaviour.
Link: https://tracker.ceph.com/issues/23873
Signed-off-by: Luis Henriques <lhenriques@suse.com>
Reviewed-by: "Yan, Zheng" <zyan@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions