]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cephfs-journal-tool:: Don't reset the journal trim position 65577/head
authorKotresh HR <khiremat@redhat.com>
Thu, 18 Sep 2025 06:41:11 +0000 (06:41 +0000)
committerKotresh HR <khiremat@redhat.com>
Thu, 18 Sep 2025 18:12:03 +0000 (18:12 +0000)
commit4f9a926a467c03a410e5ec5a81031e72f2193f25
tree7563e597bb8626beb16bb957845aaff877ce9921
parent7e85556318ae2707730ed0d5f2ef9a1d817ec6e0
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>
src/tools/cephfs/Resetter.cc