]> git.apps.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>
Thu, 18 Aug 2022 17:57:28 +0000 (13:57 -0400)
commit5fa0825bf3be437f924edf10efc93304e605ac1c
treead23b1909ac4f405cb3109012cd75fb8c32521de
parent77558ef2c4b535b8ad2936a438ddf018dd739408
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>
src/tools/cephfs/first-damage.sh [new file with mode: 0755]