]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
tools/cephfs: add basic detection/cleanup tool for dentry first damage
authorPatrick Donnelly <pdonnell@redhat.com>
Wed, 10 Aug 2022 17:20:39 +0000 (13:20 -0400)
committerPatrick Donnelly <pdonnell@redhat.com>
Tue, 8 Aug 2023 14:00:48 +0000 (10:00 -0400)
commitfc47a342265d47ab64a241607edf657ac614fa3f
tree4e06f96fdee47e5f1f09a74b495d0d219fa8845c
parent60c32701fd4b67680e5c99fd5fa279bbc09f5a57
tools/cephfs: add basic detection/cleanup tool for dentry first damage

This tool iterates through the metadata pool looking for dentries with
non-sensical "first" (snapshot) metadata. It only specifically looks for
damage of the kind where the "first" value is greater than the latest
generated snapshot for the file system. It does not detect other kinds
of genuine damage to the "first" metadata.

Fixes: https://tracker.ceph.com/issues/56140
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit 5fa0825bf3be437f924edf10efc93304e605ac1c)
src/tools/cephfs/first-damage.sh [new file with mode: 0755]