Whamcloud - gitweb
LU-10070 lod: SEL: Layout sanity checking 84/33784/25
authorPatrick Farrell <paf@cray.com>
Mon, 3 Jun 2019 17:43:16 +0000 (20:43 +0300)
committerOleg Drokin <green@whamcloud.com>
Fri, 12 Jul 2019 05:21:11 +0000 (05:21 +0000)
commit4eca26ddab3186a68888862218fa8904f812e5a1
tree803dfdbd55de386e14314c91378f86b5aaec09e0
parentff5eb304fa371d879da38621fac3aec7d4548a5e
LU-10070 lod: SEL: Layout sanity checking

Add layout sanity checking for self-extending layouts.

This requires a more complex method checking layouts,
checking the entire layout rather than just individual
components against their immediate neighbors.  This is
implemented with a layout sanity callback which walks the
layout.

Incorporate mirror sanity checks from lfs.c.

Cray-bug-id: LUS-2528
Signed-off-by: Patrick Farrell <paf@cray.com>
Change-Id: I960a4ce96ace54f7fe4305b9197e27c540f81211
Reviewed-on: https://review.whamcloud.com/33784
Reviewed-by: Patrick Farrell <pfarrell@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Alexey Lyashkov <c17817@cray.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/lustre/lustreapi.h
lustre/include/uapi/linux/lustre/lustre_user.h
lustre/tests/llapi_layout_test.c
lustre/tests/sanity-pfl.sh
lustre/tests/sanity.sh
lustre/utils/lfs.c
lustre/utils/liblustreapi_layout.c