Whamcloud - gitweb
LU-16717 mdt: treat unknown hash type as sane type 35/51235/2
authorLai Siyao <lai.siyao@whamcloud.com>
Sun, 23 Apr 2023 08:09:02 +0000 (04:09 -0400)
committerOleg Drokin <green@whamcloud.com>
Wed, 2 Aug 2023 06:17:19 +0000 (06:17 +0000)
commite4208468b65a34c84c20d5d932f35b29f9025722
tree5344ce2540526045f340dd2e3ab893ffb7659298
parentcef89c354f22f873f1f2e09536de7c690852828b
LU-16717 mdt: treat unknown hash type as sane type

Directory migration failure may leave directory hash type as
LMV_HASH_TYPE_UNKNOWN|LMV_HASH_FLAG_BAD_TYPE, which should be treated
as sane hash type on existing directories, otherwise such directories
can't be unlinked.

Add sanity 230y.

Lustre-change: https://review.whamcloud.com/50796
Lustre-commit: 05cdb71ba6813570123613993f3cfcf74fc83561

Signed-off-by: Lai Siyao <lai.siyao@whamcloud.com>
Change-Id: Ieffc0808d1db989d0bf9723f05cddb06f349e208
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/50796
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Hongchao Zhang <hongchao@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/51235
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/lustre_lmv.h
lustre/include/obd_support.h
lustre/include/uapi/linux/lustre/lustre_user.h
lustre/mdt/mdt_reint.c
lustre/tests/sanity.sh