Whamcloud - gitweb
LU-16717 mdt: treat unknown hash type as sane type
authorLai Siyao <lai.siyao@whamcloud.com>
Sun, 23 Apr 2023 08:09:02 +0000 (04:09 -0400)
committerAndreas Dilger <adilger@whamcloud.com>
Mon, 12 Jun 2023 23:27:30 +0000 (23:27 +0000)
commit3b86cc112238e7c5c96edca604af29a1631bf277
tree711dfabb6c122707b8d704084e0d3e9ae36f9d95
parent7d35dd13273e798a51a427c9575b14480bf9151b
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-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Hongchao Zhang <hongchao@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/51202
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@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