Skip to content

Commit ff44ab5

Browse files
vshankarbatrick
authored andcommitted
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 <[email protected]> Signed-off-by: Patrick Donnelly <[email protected]>
1 parent 7d59db1 commit ff44ab5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tools/cephfs/DataScan.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1358,7 +1358,7 @@ int DataScan::scan_links()
13581358
derr << "Unexpected error reading dentry "
13591359
<< p.second.dirfrag() << "/" << p.second.name
13601360
<< ": " << cpp_strerror(r) << dendl;
1361-
return r;
1361+
continue;
13621362
}
13631363

13641364
if (inode.inode->ino != p.first || inode.inode->version != p.second.version)
@@ -1384,7 +1384,7 @@ int DataScan::scan_links()
13841384
derr << "Unexpected error reading dentry "
13851385
<< p.second.dirfrag() << "/" << p.second.name
13861386
<< ": " << cpp_strerror(r) << dendl;
1387-
return r;
1387+
continue;
13881388
}
13891389

13901390
if (first != CEPH_NOSNAP) {

0 commit comments

Comments
 (0)