Whamcloud - gitweb
LU-10070 lod: SEL cleanup 14/35414/4
authorVitaly Fertman <c17818@cray.com>
Wed, 3 Jul 2019 17:10:53 +0000 (20:10 +0300)
committerOleg Drokin <green@whamcloud.com>
Sat, 20 Jul 2019 18:38:58 +0000 (18:38 +0000)
commit63e90bdb42a9fedd368726877fd4edfaf8e328c7
treed7f740e5a6d532281f8e091430fc3f1ff2d6a825
parente768624788b7b8797c97ca27f2e6f9f63124dba0
LU-10070 lod: SEL cleanup

some cleanups
- dt_statfs with an extra paremeter to be dt_statfs_info;
- lod_statfs_and_check does not need an extra parameter and
to be static again;
- move asserts to a better place;
- test component-add with wrong paremeters;
- print out the layout sanity errors wherever needed;
- make an array of layout_sanity errors;
- an HSM sanity test is added;

and one defect:
- the last component cannot be 0-lenght;

Signed-off-by: Vitaly Fertman <c17818@cray.com>
Change-Id: If832579ce27cb6ab87d36a594c04363deaea8711
Reviewed-on: https://review.whamcloud.com/35414
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Alexey Lyashkov <c17817@cray.com>
Reviewed-by: Patrick Farrell <pfarrell@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
15 files changed:
lustre/include/dt_object.h
lustre/lod/lod_dev.c
lustre/lod/lod_internal.h
lustre/lod/lod_object.c
lustre/lod/lod_qos.c
lustre/lod/lproc_lod.c
lustre/mdt/mdt_handler.c
lustre/obdclass/dt_object.c
lustre/obdclass/llog_cat.c
lustre/obdclass/obd_mount_server.c
lustre/ofd/ofd_obd.c
lustre/target/tgt_grant.c
lustre/tests/sanity-hsm.sh
lustre/tests/sanity-pfl.sh
lustre/utils/liblustreapi_layout.c