]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
tools/cephfs: always execute scan_{extents,inodes,frags} and cleanup 67709/head
authorVenky Shankar <vshankar@redhat.com>
Thu, 26 Feb 2026 14:43:19 +0000 (20:13 +0530)
committerVenky Shankar <vshankar@redhat.com>
Thu, 14 May 2026 09:28:55 +0000 (14:58 +0530)
commit014a446227e75ec74d01a77d96c3204bf6dd956f
treea312e63fbe8d2c3959482f5a8b29dd5e872e8615
parent20eb15fb6d166ab33e8cc289e30e8b2aaeb5dbf8
tools/cephfs: always execute scan_{extents,inodes,frags} and cleanup

Even when the number of objects reported from pool stats is zero.
Pool stats metrics are delayed and cannot be fully relied on for
accuracy. Trusting the number of objects (esp. when reported as
zero) could result in missed steps during data-scan execution.

So, we try to do two things now:

1. ProgressTracker::display_progress() will display progress only
when the total items exceeds to the number of progress items.
2. Refresh total object count during each iteration of processing
objects. This might be a bit too much, so we probably need to
do this periodically rather than on each iteration.

Fixes: http://tracker.ceph.com/issues/75083
Signed-off-by: Venky Shankar <vshankar@redhat.com>
src/tools/cephfs/DataScan.cc
src/tools/cephfs/ProgressTracker.cc