From d39762475f4f547d6c81d66b9e40e9954c3e6c7e Mon Sep 17 00:00:00 2001 From: James Nunez Date: Wed, 20 Nov 2013 13:30:37 -0700 Subject: [PATCH] LU-3879 test: Check for e2fsprogs on server sanity-quota checks if e2fsprogs is loaded on the client, but should be checking for e2fsprogs on the server. This patch changes checking for dumpe2fs on the client to checking on the MDS. Signed-off-by: James Nunez Change-Id: I85d3b71dedb6e33775c7823b11f18c7ca405e858 Reviewed-on: http://review.whamcloud.com/8350 Tested-by: Jenkins Reviewed-by: Niu Yawei Reviewed-by: Jian Yu Tested-by: Maloo Reviewed-by: Oleg Drokin --- lustre/tests/sanity-quota.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lustre/tests/sanity-quota.sh b/lustre/tests/sanity-quota.sh index 2cfc409..6622cd3 100644 --- a/lustre/tests/sanity-quota.sh +++ b/lustre/tests/sanity-quota.sh @@ -43,9 +43,10 @@ if [ $(lustre_version_code $SINGLEMDS) -lt $(version_code 2.3.50) ]; then exec $LUSTRE/tests/sanity-quota-old.sh fi -# if e2fsprogs support quota feature? -if [ $(facet_fstype $SINGLEMDS) == ldiskfs ] && \ - ! $DEBUGFS -c -R supported_features | grep -q 'quota'; then +# Does e2fsprogs support quota feature? +if [ $(facet_fstype $SINGLEMDS) == ldiskfs ] && + do_facet $SINGLEMDS "! $DEBUGFS -c -R supported_features | + grep -q 'quota'"; then skip "e2fsprogs doesn't support quota" && exit 0 fi -- 1.8.3.1