]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
client: fix incorrectly showing the .snap size for stat 48414/head
authorXiubo Li <xiubli@redhat.com>
Wed, 31 Aug 2022 07:27:01 +0000 (15:27 +0800)
committerVenky Shankar <vshankar@redhat.com>
Mon, 10 Oct 2022 09:21:40 +0000 (14:51 +0530)
commite76bf9c3766c05136398668fd9731b9ece4db7b9
treedbcd28c37d16122db19106f6103e75e9dcc1cc85
parent30cf4677f619ac62f76f3ce77a5ac7fe83c31d66
client: fix incorrectly showing the .snap size for stat

We should set the 'stat->size' to the real number of snapshots for
snapdirs.

Fixes: https://tracker.ceph.com/issues/57344
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit aa918d2e383eb9da2f6f837d731cc18bbad21e44)
src/client/Client.cc