Whamcloud - gitweb
LU-11213 lod: default LMV can't be deleted 07/35207/3
authorLai Siyao <lai.siyao@whamcloud.com>
Wed, 12 Jun 2019 10:33:12 +0000 (18:33 +0800)
committerOleg Drokin <green@whamcloud.com>
Thu, 20 Jun 2019 03:51:13 +0000 (03:51 +0000)
commit36243c75bd55c9e4d24f4e592fe03c92b56baedd
tree21711645414c1fcea3eba518b944f026e4eb70c2
parent8c914986bf415a535153f77e53e630707f8e1a1c
LU-11213 lod: default LMV can't be deleted

When 'space' hash type was introduced, default LMV deletion added
check for hash type, but it only checks whether type is 'none',
while by default it's 'fnv_1a_64', which caused default LMV can't
be deleted.

Change check to !LMV_HASH_TYPE_SPACE and update test 413b.

Fixes: a24f6153292 ("LU-11213 dne: add new dir hash type 'space'")

Signed-off-by: Lai Siyao <lai.siyao@whamcloud.com>
Change-Id: I88c630dc8d339ddeb9dc03d6f8987d8783062a13
Reviewed-on: https://review.whamcloud.com/35207
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Li Xi <lixi@ddn.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/lod/lod_object.c
lustre/tests/sanity.sh