From 7e3b038c6cea6a89feae684012fa6a33443c7473 Mon Sep 17 00:00:00 2001 From: Sachin Pandit Date: Thu, 15 May 2014 09:24:33 +0530 Subject: cli/snapshot : Dont Do the validation of snapshot config limit in CLI code path. Problem : If we try to set the volume snap limit to more that 256, it always shows value cannot exceed 256, irrespective of system max limit. Solution : Dont do validation in CLI side. Change-Id: I292c0bc91a1806cd4906fca0151dd98135e6e49a BUG: 1098122 Signed-off-by: Sachin Pandit Reviewed-on: http://review.gluster.org/7777 Tested-by: Gluster Build System Reviewed-by: Raghavendra Bhat Reviewed-by: Rajesh Joseph Reviewed-by: Kaushal M --- tests/bugs/bug-1087203.t | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests') diff --git a/tests/bugs/bug-1087203.t b/tests/bugs/bug-1087203.t index 0c4ee01cba5..acbb826013d 100644 --- a/tests/bugs/bug-1087203.t +++ b/tests/bugs/bug-1087203.t @@ -32,6 +32,8 @@ TEST ! $CLI snapshot config snap-max-soft-limit 0111 TEST ! $CLI snapshot config snap-max-hard-limit OXA TEST ! $CLI snapshot config snap-max-hard-limit 11.11 TEST ! $CLI snapshot config snap-max-soft-limit 50% +TEST ! $CLI snapshot config snap-max-hard-limit -100 +TEST ! $CLI snapshot config snap-max-soft-limit -90 # Soft limit cannot be assigned to volume TEST ! $CLI snapshot config $V0 snap-max-soft-limit 10 -- cgit