Whamcloud - gitweb
LU-14448 lod: verify LOV early in lod_get_default_striping 70/45370/3
authorLai Siyao <lai.siyao@whamcloud.com>
Sat, 23 Oct 2021 14:44:36 +0000 (10:44 -0400)
committerOleg Drokin <green@whamcloud.com>
Sat, 20 Nov 2021 06:28:16 +0000 (06:28 +0000)
commiteba1b49172259ece89ab604a2ed2285e4770baa2
tree426f6262d78b954a052c71f5e4310181e9eba365
parent38c78ac2e390b30106f3e185d8c4d92b8cb19c2b
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.

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