Whamcloud - gitweb
LU-16717 mdt: resume dir migration with bad_type 97/50797/4
authorLai Siyao <lai.siyao@whamcloud.com>
Fri, 28 Apr 2023 09:22:03 +0000 (05:22 -0400)
committerOleg Drokin <green@whamcloud.com>
Wed, 31 May 2023 19:01:53 +0000 (19:01 +0000)
commit151650e468ab423e831c30d635ea380e0434a122
tree06d1ad19c0404dd571d5f7b504d7960a3cc70bd0
parent05cdb71ba6813570123613993f3cfcf74fc83561
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.

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