From 707ba05310f7b8dacdcc1d2d65657ea7db9f0f90 Mon Sep 17 00:00:00 2001 From: Wang Shilong Date: Sun, 7 Apr 2019 11:44:51 +0800 Subject: [PATCH] LU-12166 test: fix broken detection on ZFS We intent to run the command on mds, otherwise project quota will never be tested. Lustre-change: https://review.whamcloud.com/34609 Lustre-commit: 0f2cd5948b870c0f82a70bdf32f0c5f6d845144d Test-Parameters:trivial fstype=zfs Fixes: a046e87 ("LU-7991 quota: project quota against ZFS backend") Change-Id: I8650a0e1065f0bb465da01556472d3d23b22a530 Signed-off-by: Wang Shilong Reviewed-by: Hongchao Zhang Reviewed-by: Gu Zheng Signed-off-by: Minh Diep Reviewed-on: https://review.whamcloud.com/34924 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Oleg Drokin --- lustre/tests/sanity-quota.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lustre/tests/sanity-quota.sh b/lustre/tests/sanity-quota.sh index 5bde02c..469bd50 100755 --- a/lustre/tests/sanity-quota.sh +++ b/lustre/tests/sanity-quota.sh @@ -85,7 +85,8 @@ is_project_quota_supported() { [ $(lustre_version_code $SINGLEMDS) -le \ $(version_code 2.10.53) ] && return 1 - $ZPOOL upgrade -v | grep project_quota && return 0 + do_facet mds1 $ZPOOL upgrade -v | + grep project_quota && return 0 fi return 1 -- 1.8.3.1