Whamcloud - gitweb
LU-16717 mdt: treat unknown hash type as sane type 96/50796/5
authorLai Siyao <lai.siyao@whamcloud.com>
Sun, 23 Apr 2023 08:09:02 +0000 (04:09 -0400)
committerOleg Drokin <green@whamcloud.com>
Wed, 31 May 2023 19:01:37 +0000 (19:01 +0000)
commit05cdb71ba6813570123613993f3cfcf74fc83561
tree68fa426f02335617dfedbf5d330b6730ac1d97fd
parent594b780062db7e015837faefa75f7352293f54ae
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.

Signed-off-by: Lai Siyao <lai.siyao@whamcloud.com>
Change-Id: Ieffc0808d1db989d0bf9723f05cddb06f349e208
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/50796
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/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