Whamcloud - gitweb
LU-14448 lod: verify LOV before set/inherit
authorLai Siyao <lai.siyao@whamcloud.com>
Thu, 23 Sep 2021 10:31:06 +0000 (06:31 -0400)
committerAndreas Dilger <adilger@whamcloud.com>
Wed, 13 Oct 2021 19:29:24 +0000 (19:29 +0000)
commitd35aa94e79de377714df361b5f77b26668bfe1f0
tree3d171169fd9a2743db80bf01a10b4fefe6f64ccf
parentdcc46813c0c3b81ed7c3cf16a1fcb7f96ba27b5f
LU-14448 lod: verify LOV before set/inherit

DoM layout can only be set as entry in composite layout, and its
stripe count should always be 0.

Verify LOV before setting and inheriting.

Add sanity 270i.

Lustre-change: https://review.whamcloud.com/45039
Lustre-commit: TBD (from f6cb64a29f6445356e0557597ddf83e761de8ca1)

Signed-off-by: Lai Siyao <lai.siyao@whamcloud.com>
Change-Id: I016d1a202960bfebc72dd808de5f80e09051a01e
Signed-off-by: Minh Diep <mdiep@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/45204
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/lod/lod_lov.c
lustre/lod/lod_object.c
lustre/tests/sanity.sh