Whamcloud - gitweb
LU-15502 llite: set default LMV hash type with 2.12 MDS 78/46378/8
authorLai Siyao <lai.siyao@whamcloud.com>
Sat, 29 Jan 2022 05:14:40 +0000 (00:14 -0500)
committerOleg Drokin <green@whamcloud.com>
Mon, 7 Feb 2022 04:43:39 +0000 (04:43 +0000)
commit51c6d596d4f3e82decb037c02e8b5d095e0a4962
tree583caa68618ce90514f8d3ed85526a1eceaaa114
parentbebd87cc6c9acc577a2fdde56e856075094f1291
LU-15502 llite: set default LMV hash type with 2.12 MDS

If default LMV hash type is CRUSH, or unset, it should be converted
to fnv_16_64, because 2.12 MDS doesn't understand this.

Fix LMV_HASH_FLAG_KNOWN to match actual known flags.

Test-Parameters: testlist=sanity env=ONLY=300 mdtcount=2 serverversion=2.12 serverdistro=el7.9
Fixes: 0a1cf8da8069 ("LU-11025 dne: introduce new directory hash type: "crush")
Fixes: bb60caa1c6e7 ("LU-14459 lmv: change default hash type to crush")
Signed-off-by: Lai Siyao <lai.siyao@whamcloud.com>
Change-Id: Ie2ad5a456040dcd01bc2c5ab96db52bf944abbd2
Reviewed-on: https://review.whamcloud.com/46378
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Patrick Farrell <pfarrell@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/uapi/linux/lustre/lustre_user.h
lustre/llite/dir.c