From ff44ab5e63b42a53f32f3056a8b63efd511014bb Mon Sep 17 00:00:00 2001 From: Venky Shankar Date: Wed, 20 Dec 2023 01:54:56 -0500 Subject: [PATCH] tools/cephfs/DataScan: do not error out when failing to read a dentry Give a chance for the scan tool to proceed with other inodes/dentries. Signed-off-by: Venky Shankar Signed-off-by: Patrick Donnelly --- src/tools/cephfs/DataScan.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tools/cephfs/DataScan.cc b/src/tools/cephfs/DataScan.cc index 1a40cdefca2f..1a0c75f5dac7 100644 --- a/src/tools/cephfs/DataScan.cc +++ b/src/tools/cephfs/DataScan.cc @@ -1358,7 +1358,7 @@ int DataScan::scan_links() derr << "Unexpected error reading dentry " << p.second.dirfrag() << "/" << p.second.name << ": " << cpp_strerror(r) << dendl; - return r; + continue; } if (inode.inode->ino != p.first || inode.inode->version != p.second.version) @@ -1384,7 +1384,7 @@ int DataScan::scan_links() derr << "Unexpected error reading dentry " << p.second.dirfrag() << "/" << p.second.name << ": " << cpp_strerror(r) << dendl; - return r; + continue; } if (first != CEPH_NOSNAP) { -- 2.47.3