summaryrefslogtreecommitdiffstats
path: root/tests/bugs/quota/bug-1288474.t
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs/quota/bug-1288474.t')
-rwxr-xr-xtests/bugs/quota/bug-1288474.t7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/bugs/quota/bug-1288474.t b/tests/bugs/quota/bug-1288474.t
index ea6bca6cb07..57a66197cde 100755
--- a/tests/bugs/quota/bug-1288474.t
+++ b/tests/bugs/quota/bug-1288474.t
@@ -7,9 +7,10 @@
NUM_BRICKS=2
function create_dist_tier_vol () {
- mkdir $B0/cold
- mkdir $B0/hot
+ mkdir -p $B0/cold/${V0}{0..$1}
+ mkdir -p $B0/hot/${V0}{0..$1}
TEST $CLI volume create $V0 $H0:$B0/cold/${V0}{0..$1}
+ TEST $CLI volume set $V0 nfs.disable false
TEST $CLI volume start $V0
TEST $CLI volume tier $V0 attach $H0:$B0/hot/${V0}{0..$1}
}
@@ -34,12 +35,14 @@ EXPECT_WITHIN $MARKER_UPDATE_TIMEOUT "10.0MB" quota_list_field "/" 5
TEST $CLI volume detach-tier $V0 start
sleep 1
TEST $CLI volume detach-tier $V0 force
+
EXPECT_WITHIN $MARKER_UPDATE_TIMEOUT "10.0MB" quota_list_field "/" 5
#check quota list after attach tier
rm -rf $B0/hot
mkdir $B0/hot
TEST $CLI volume tier $V0 attach $H0:$B0/hot/${V0}{0..$1}
+
EXPECT_WITHIN $MARKER_UPDATE_TIMEOUT "10.0MB" quota_list_field "/" 5
TEST umount $M0