Whamcloud - gitweb
LU-14645 utils: optimise setstripe 52/46152/5
authorVitaly Fertman <c17818@cray.com>
Mon, 17 Jan 2022 19:54:12 +0000 (22:54 +0300)
committerOleg Drokin <green@whamcloud.com>
Mon, 31 Jan 2022 01:22:23 +0000 (01:22 +0000)
commitcd1f8527d414a12ec7eb5b69fe30509a45b33ad4
treecbfb5dc7217deabd9494a4636000d55d0c081761
parent5e65d6a8e57a5a17c4c7e043cb46e86bf82b7782
LU-14645 utils: optimise setstripe

skip some excessive checks:
- do not check the file is on lustre fs, the following ioctl does it;
- do not check the stripe-index is valid, done on MDS side;
- do not check the pool exists for a !PFL file (align with a setstripe
  for PFL files);

Signed-off-by: Vitaly Fertman <c17818@cray.com>
Change-Id: Ia21f85c3ab73a970bad8d11e175c0063ab3a307f
Reviewed-on: https://review.whamcloud.com/46152
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Alexander Boyko <alexander.boyko@hpe.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/lustre/lustreapi.h
lustre/tests/llapi_layout_test.c
lustre/tests/ost-pools.sh
lustre/utils/lfs.c
lustre/utils/liblustreapi.c
lustre/utils/liblustreapi_layout.c
lustre/utils/lustreapi_internal.h