Whamcloud - gitweb
LU-13070 mdd: try old format for orphan names during recovery 49/37049/3
authorArtem Blagodarenko <c17828@cray.com>
Tue, 17 Dec 2019 09:12:36 +0000 (12:12 +0300)
committerOleg Drokin <green@whamcloud.com>
Fri, 3 Jan 2020 00:08:37 +0000 (00:08 +0000)
commit05fca4be33067f24a02e527c88cff5b60a20bb39
tree4039b1b7cd81219422c6a080cb7c9f5a293b0f63
parent72675eb8ab54be272b37e9526a4eac949ffbc6d4
LU-13070 mdd: try old format for orphan names during recovery

mdd_orphan_destroy() loop caused by compatibility issue on upgrade to
2.11 or later. The format for names of orphans in the PENDING directory
was changed in Lustre 2.11. The old format names are not recognized by
mdd_orphan_destroy() in Lustre 2.11, but compatibility code added to
handle this was incomplete, leading to an endless loop. There's a check
for the old format name, used in mdd_orphan_delete(), but that check
was not included in mdd_orphan_destroy().

This patch adds compatibility check for mdd_orphan_destroy().

Fixes: a02fd4573fe ("LU-7787 mdd: clean up orphan object handling")
Signed-off-by: Artem Blagodarenko <c17828@cray.com>
Cray-bug-id: LUS-8270
Change-Id: I9f42188dcb00f9d536996c14771de7df02502b40
Reviewed-on: https://review.whamcloud.com/37049
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Yang Sheng <ys@whamcloud.com>
lustre/mdd/mdd_orphans.c