Whamcloud - gitweb
LU-8962 lfs: Handle non-lustre and multiple args 26/42126/14
authorArshad Hussain <arshad.hussain@aeoncomputing.com>
Mon, 22 Mar 2021 11:43:15 +0000 (17:13 +0530)
committerOleg Drokin <green@whamcloud.com>
Wed, 22 Sep 2021 04:42:42 +0000 (04:42 +0000)
commit2d714041ba718853be700960b76769a8fb44cf51
tree14d18546fe2e8aa56941d4224b034507ecd1b1f6
parenteb7cc5359d8bb50ee9a12fbb42bd98269c6d524e
LU-8962 lfs: Handle non-lustre and multiple args

This patch addresses:

01: Handle multiple filesystems provided to 'lfs df'
02: Correctly report 'EOPNOTSUPP' for filesystems which
    are non-Lustre.
03: Make changes to test-framework.sh to handle modified
    return value from 'lfs df'. This changes For compatibility
    reason, ignores and masquerades EOPNOTSUPP as success.

The final return value is 0 for _all_ success or
value of the first failure for even a single failure
seen during the argument processing

sanity/56e Test-case added.

Signed-off-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Change-Id: I73287d21792d89b8cde672acdaf9c9caf829522f
Reviewed-on: https://review.whamcloud.com/42126
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/conf-sanity.sh
lustre/tests/sanity.sh
lustre/tests/test-framework.sh
lustre/utils/lfs.c