]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cephfs-journal-tool:: Don't reset the journal trim position 65602/head
authorKotresh HR <khiremat@redhat.com>
Thu, 18 Sep 2025 06:41:11 +0000 (06:41 +0000)
committerKotresh HR <khiremat@redhat.com>
Fri, 19 Sep 2025 11:58:44 +0000 (17:28 +0530)
commit829fa28a72e6f03b8ee4663281aa7475da4ef159
treea313dd1c6b6309f458e0c8ca405c55aae593a424
parent3e6dd967a01685c4914e91353a4c3e063d4606e4
cephfs-journal-tool:: Don't reset the journal trim position

If the fs had to go through journal recovery and reset,
the cephfs-journal-tool resets the journal trim position
because of which the old unused journal objects just stay
forever in the metadata pool. The patch fixes the issue.
Now, the old stale journal objects are trimmed during the
regular trimming cycle helping to recover space in the
metadata pool.

Fixes: https://tracker.ceph.com/issues/69708
Signed-off-by: Kotresh HR <khiremat@redhat.com>
(cherry picked from commit 4f9a926a467c03a410e5ec5a81031e72f2193f25)
src/tools/cephfs/Resetter.cc