]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
tools/cephfs/DataScan: do not error out when failing to read a dentry
authorVenky Shankar <vshankar@redhat.com>
Wed, 20 Dec 2023 06:54:56 +0000 (01:54 -0500)
committerPatrick Donnelly <pdonnell@ibm.com>
Thu, 30 Jan 2025 04:19:53 +0000 (23:19 -0500)
Give a chance for the scan tool to proceed with other inodes/dentries.

Signed-off-by: Venky Shankar <vshankar@redhat.com>
Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
src/tools/cephfs/DataScan.cc

index 1a40cdefca2f33021337e32f3040baa9028f6c0e..1a0c75f5dac7cad1648c52b733319280a9eecac1 100644 (file)
@@ -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) {