Actions
Bug #57342
closedkclient: incorrectly showing the size for snapdirs when stating them
% Done:
0%
Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Crash signature (v1):
Crash signature (v2):
Description
There are 4 snapshots under the /mnt/kcephfs/.snap/:
[root@lxbceph1 kcephfs]# ls /mnt/kcephfs/.snap/ ddd fff fffd snap3
But when stating the /mnt/kcephfs/.snap/ directory, I hit one time it show as -2:
[root@lxbceph1 kcephfs]# stat /mnt/kcephfs/.snap/ File: .snap/ Size: -2 Blocks: 0 IO Block: 65536 directory Device: 0h/0d Inode: 1 Links: 1 Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root) Context: system_u:object_r:cephfs_t:s0 Access: 1970-01-01 08:00:00.000000000 +0800 Modify: 2022-08-31 07:51:02.242181796 +0800 Change: 2022-08-31 07:51:02.242181796 +0800 Birth: 2022-08-31 07:50:19.681478483 +0800
But mostly it will show as 0:
[root@lxbceph1 kcephfs]# stat /mnt/kcephfs/.snap File: .snap Size: 0 Blocks: 0 IO Block: 65536 directory Device: 0h/0d Inode: 1 Links: 2 Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root) Context: system_u:object_r:cephfs_t:s0 Access: 1970-01-01 08:00:00.000000000 +0800 Modify: 2022-08-31 10:54:27.883476991 +0800 Change: 2022-08-31 10:54:27.883476991 +0800 Birth: 2022-08-31 09:39:50.856553467 +0800
But 4 is as expected.
Actions