From d6b6c32ac7f0a6b3d77009aec8bdd0cd289bd0ff Mon Sep 17 00:00:00 2001 From: vmallika Date: Mon, 2 Mar 2015 13:10:24 +0530 Subject: function gf_string2bytesize_range should handle 'xB' byte values Change-Id: I208289aae2423e4bb015cf33bafd2a961e1c3fc6 BUG: 1197593 Signed-off-by: vmallika Reviewed-on: http://review.gluster.org/9779 Reviewed-by: Atin Mukherjee Tested-by: Gluster Build System Reviewed-by: Sachin Pandit Reviewed-by: Vijay Bellur --- tests/basic/quota-ancestry-building.t | 2 +- tests/bugs/quota/bug-1087198.t | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/basic/quota-ancestry-building.t b/tests/basic/quota-ancestry-building.t index 1633e497922..0cb154ff146 100755 --- a/tests/basic/quota-ancestry-building.t +++ b/tests/basic/quota-ancestry-building.t @@ -22,7 +22,7 @@ TEST glusterfs --volfile-id=/$V0 --volfile-server=$H0 $M0 --attribute-timeout=0 EXPECT 'Started' volinfo_field $V0 'Status'; TEST $CLI volume quota $V0 enable -TEST $CLI volume quota $V0 limit-usage / 1 +TEST $CLI volume quota $V0 limit-usage / 1B TEST $CLI volume quota $V0 soft-timeout 0 TEST $CLI volume quota $V0 hard-timeout 0 diff --git a/tests/bugs/quota/bug-1087198.t b/tests/bugs/quota/bug-1087198.t index ffc43c35acf..5121f1b35a2 100644 --- a/tests/bugs/quota/bug-1087198.t +++ b/tests/bugs/quota/bug-1087198.t @@ -47,7 +47,9 @@ TEST $CLI volume quota $V0 enable TEST $CLI volume quota $V0 alert-time 10 TEST $CLI volume quota $V0 hard-timeout 0 TEST $CLI volume quota $V0 soft-timeout 0 -TEST $CLI volume quota $V0 limit-usage / 200KB + +# Set limit to 200KB (204800B) +TEST $CLI volume quota $V0 limit-usage / 204800B TEST $CLI volume quota $V0 limit-usage /$QUOTA_LIMIT_DIR 100KB #16 -- cgit