Whamcloud - gitweb
LU-16717 mdt: resume dir migration with bad_type 43/51243/2
authorLai Siyao <lai.siyao@whamcloud.com>
Fri, 28 Apr 2023 09:22:03 +0000 (05:22 -0400)
committerOleg Drokin <green@whamcloud.com>
Wed, 2 Aug 2023 06:19:19 +0000 (06:19 +0000)
commit1c882aebeaac4970c78a3616f1dd96d0920d133f
tree486b594c0ce39339575fdd9e9aec07f1f86170f5
parentb996d1e0276fdf6c084410cd1dcfac0df13437fe
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/fs/lustre-release/+/51243
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/lfsck/lfsck_striped_dir.c
lustre/mdt/mdt_reint.c
lustre/tests/sanity.sh