Whamcloud - gitweb
LU-15502 llite: set default LMV hash type with 2.12 MDS
authorLai Siyao <lai.siyao@whamcloud.com>
Sat, 29 Jan 2022 05:14:40 +0000 (00:14 -0500)
committerAndreas Dilger <adilger@whamcloud.com>
Tue, 1 Feb 2022 08:25:48 +0000 (08:25 +0000)
commit5d28ad8789952dc1d71bd61b74432cd6cf46c5fd
tree56129441755467d56e73fc87707fafab70f9318e
parentf4d645b1ca425e545be9810b44984cc8a89a7091
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.

Lustre-change: https://review.whamcloud.com/46378/
Lustre-commit: TBD (from 420337ba103433cc194822aec0da3516638ade6b)

Test-Parameters: testlist=sanity env=ONLY=300 mdtcount=2 serverversion=2.12.6-ddn42
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/46381
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Patrick Farrell <pfarrell@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/include/uapi/linux/lustre/lustre_user.h
lustre/llite/dir.c