summaryrefslogtreecommitdiffstats
path: root/tests/bugs/bug-857330
diff options
context:
space:
mode:
authorSachin Pandit <spandit@redhat.com>2014-04-03 10:00:04 +0530
committerVijay Bellur <vbellur@redhat.com>2014-04-29 22:02:01 -0700
commite2034a84d284c37ade9f49be1589e3f53321bb23 (patch)
treef0827a0ed6b4d4f04ab50f65f8d6d6cec991354f /tests/bugs/bug-857330
parent4d9e0bf658cce3cf9f808bb6d0a4cb2d8c9ad504 (diff)
snapshot/config : Fix for bug which states gluster snapshot config
command should only accept the decimal numeric value. Syntax : gluster snapshot config [volname] [snap-max-hard-limit <count>] [snap-max-soft-limit <percentage>] Problem : Snapshot config used to consider the alphanumeric value staring with digit as an integer (Example: "9abc" is converted to "9"). Solution : Refined the code to check if the entered value is numeric. This patch also fixes some of the minor problems related to snapshot config. 1) Output correction in gluster snapshot config snap-max-soft-limit. 2) setting the soft limit to greater than 100% displays that "Invalid snap-max-soft-limit 0". The error message used to display "zero" in the output, Changed this to display relevant value. 3) Setting greater than allowed snap-max-hard-limit output needs to have space in between. Change-Id: Ie7c7045722fe57b2b3c50c873664b67c28eb3853 BUG: 1087203 Signed-off-by: Sachin Pandit <spandit@redhat.com> Reviewed-on: http://review.gluster.org/7457 Reviewed-by: Vijaikumar Mallikarjuna <vmallika@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'tests/bugs/bug-857330')
0 files changed, 0 insertions, 0 deletions