From d8b6d451847cda2b3b06ed630a14306cd20bf9b8 Mon Sep 17 00:00:00 2001 From: Patrick Donnelly Date: Mon, 27 Mar 2023 14:47:29 -0400 Subject: [PATCH] tools/cephfs: include lost+found in scan_links Otherwise, any injected dentries have incorrect first snapids. Fixes: https://tracker.ceph.com/issues/59183 Signed-off-by: Patrick Donnelly --- src/tools/cephfs/DataScan.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tools/cephfs/DataScan.cc b/src/tools/cephfs/DataScan.cc index de051505dc4..0ba56c5154e 100644 --- a/src/tools/cephfs/DataScan.cc +++ b/src/tools/cephfs/DataScan.cc @@ -1040,7 +1040,8 @@ bool DataScan::valid_ino(inodeno_t ino) const || (MDS_INO_IS_STRAY(ino)) || (MDS_INO_IS_MDSDIR(ino)) || ino == CEPH_INO_ROOT - || ino == CEPH_INO_CEPH; + || ino == CEPH_INO_CEPH + || ino == CEPH_INO_LOST_AND_FOUND; } int DataScan::scan_links()