From 248021fb7ea5bb56ddd21daae3cde16be08881a5 Mon Sep 17 00:00:00 2001 From: James Nunez Date: Wed, 20 Nov 2013 10:49:17 -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 from the client to the MDS. Signed-off-by: James Nunez Change-Id: I83b0b5b99deec376f4ee2d59e30810373e330174 Reviewed-on: http://review.whamcloud.com/8346 Tested-by: Jenkins Reviewed-by: Niu Yawei Reviewed-by: Jian Yu Tested-by: Maloo Reviewed-by: Andreas Dilger --- 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 266b1c8..c1e3a31 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