Whamcloud - gitweb
LU-14448 lod: verify LOV early in lod_get_default_striping
authorLai Siyao <lai.siyao@whamcloud.com>
Wed, 19 Jan 2022 05:28:23 +0000 (21:28 -0800)
committerJohn L. Hammond <jhammond@whamcloud.com>
Fri, 21 Jan 2022 22:10:55 +0000 (22:10 +0000)
commitae6cc2e05376e8ecebd81774eebd4f826046b355
treebadee452b2c44ca31cc268648fee399239174703
parent2414a8616deb08c6a1f423110eb2d54b9a5a68f7
LU-14448 lod: verify LOV early in lod_get_default_striping

lod_get_default_striping() will get both default LOV and default LMV,
and parse them to struct lod_default_striping one by one, however the
LOV and LMV data are both stored in lod_thread_info.lti_ea_store, so
lod_verify_striping() should verify LOV upon getting LOV, otherwise
if both exists, it's LMV that's verified, which will return -EINVAL.

Lustre-change: https://review.whamcloud.com/45370
Lustre-commit: eba1b49172259ece89ab604a2ed2285e4770baa2

Fixes: 6a08df2d0effc7a ("LU-14448 lod: verify LOV before set/inherit")
Signed-off-by: Lai Siyao <lai.siyao@whamcloud.com>
Change-Id: I9763d35bdbc74101fa8515d5096ec457a4cb3524
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Hongchao Zhang <hongchao@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/46182
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: John L. Hammond <jhammond@whamcloud.com>
lustre/lod/lod_object.c