Whamcloud - gitweb
LU-16717 mdt: resume dir migration with bad_type
authorLai Siyao <lai.siyao@whamcloud.com>
Fri, 28 Apr 2023 09:22:03 +0000 (05:22 -0400)
committerAndreas Dilger <adilger@whamcloud.com>
Mon, 12 Jun 2023 23:28:24 +0000 (23:28 +0000)
commit15888818fd038d83ce9a9fe3e3c7ef3e499c9346
tree908df1380c30b5db66215e7d2351749d8126f292
parent3b86cc112238e7c5c96edca604af29a1631bf277
LU-16717 mdt: resume dir migration with bad_type

LFSCK may set hash type to "none,bad_type" upon migration failure,
set it back to "fnv_1a_64,migrating,bad_type,fixed" to allow
migration resumption. fnv_1a_64 is set because it's the default hash
type, and now that we don't know the hash type in the original
migration command, just try with it.

LFSCK just add "bad_type" flag on such directory, so that such
migration can always be resumed in the future.

Add sanity 230z.

Lustre-change: https://review.whamcloud.com/50797
Lustre-commit: 151650e468ab423e831c30d635ea380e0434a122

Signed-off-by: Lai Siyao <lai.siyao@whamcloud.com>
Change-Id: I19606aefcb9115e6724843785aea89a1c380e23f
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Hongchao Zhang <hongchao@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/51230
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Andreas Dilger <adilger@whamcloud.com>
lustre/lfsck/lfsck_striped_dir.c
lustre/mdt/mdt_reint.c
lustre/tests/sanity.sh