We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9637ffe commit 8d11b07Copy full SHA for 8d11b07
src/tools/cephfs/first-damage.py
@@ -64,12 +64,15 @@
64
LOST_FOUND_INODE = "4.00000000"
65
66
DIR_PATTERN = re.compile(r'[0-9a-fA-F]{8,}\.[0-9a-fA-F]+')
67
+STRAY_DIR_PATTERN = re.compile(r'6[0-9a-fA-F]{2,}\.[0-9a-fA-F]+')
68
69
CACHE = set()
70
71
def traverse(MEMO, ioctx):
72
for o in ioctx.list_objects():
- if not DIR_PATTERN.fullmatch(o.key) and o.key not in [ROOT_INODE, LOST_FOUND_INODE]:
73
+ if (not DIR_PATTERN.fullmatch(o.key) and
74
+ not STRAY_DIR_PATTERN.fullmatch(o.key)
75
+ and o.key not in [ROOT_INODE, LOST_FOUND_INODE]):
76
log.debug("skipping %s", o.key)
77
continue
78
elif o.key in CACHE:
0 commit comments