Fixes: https://tracker.ceph.com/issues/69695
Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
(cherry picked from commit
3243af47d60558227263203cdc4f9b9f0ebb3f5e)
Conflicts:
src/mds/MDCache.cc: no pdir
}
ceph_assert(curdir);
+ if (mds->damage_table.is_dirfrag_damaged(curdir)) {
+ dout(4) << "traverse: stopped lookup at dirfrag "
+ << *curdir << "/" << path[depth] << " snap=" << snapid << dendl;
+ return -CEPHFS_EIO;
+ }
+
#ifdef MDS_VERIFY_FRAGSTAT
if (curdir->is_complete())
curdir->verify_fragstat();