is_project_quota_supported() is called from sanity-quota.sh
to verify if the ldiskfs FS $ENABLE_PROJECT_QUOTAS is true
and to verify if current version of lfs command supports
'project'. To do this it calls 'lfs --help' which is
not supported. This patch moves 'lfs --help' call to
'lfs --list-commands' call to verfiy if the present
version of lfs supports 'project'
Test-Parameters: trivial testlist=sanity-quota
Signed-off-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Change-Id: Iba7e6696d3fa9e980088f448ae72b07a4b47f4f2
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/48654
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Hongchao Zhang <hongchao@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
[[ "$(facet_fstype $SINGLEMDS)" == "ldiskfs" &&
$(lustre_version_code $SINGLEMDS) -gt $(version_code 2.9.55) ]] &&
- do_facet mds1 lfs --help |& grep -q project && return 0
+ do_facet mds1 lfs --list-commands |& grep -q project &&
+ return 0
[[ "$(facet_fstype $SINGLEMDS)" == "zfs" &&
$(lustre_version_code $SINGLEMDS) -gt $(version_code 2.10.53) ]] &&