diff options
author | vmallika <vmallika@redhat.com> | 2015-03-02 13:10:24 +0530 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2015-03-31 23:31:44 -0700 |
commit | d6b6c32ac7f0a6b3d77009aec8bdd0cd289bd0ff (patch) | |
tree | 20ab138063bc0625172920336c99ad9e0e38b239 /libglusterfs/src/common-utils.c | |
parent | 562cdace9152add786f156e38dc3fbc8805a69b7 (diff) |
function gf_string2bytesize_range should handle 'xB' byte values
Change-Id: I208289aae2423e4bb015cf33bafd2a961e1c3fc6
BUG: 1197593
Signed-off-by: vmallika <vmallika@redhat.com>
Reviewed-on: http://review.gluster.org/9779
Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Sachin Pandit <spandit@redhat.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'libglusterfs/src/common-utils.c')
-rw-r--r-- | libglusterfs/src/common-utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libglusterfs/src/common-utils.c b/libglusterfs/src/common-utils.c index 1adfdaa1673..f9eea5e5fd0 100644 --- a/libglusterfs/src/common-utils.c +++ b/libglusterfs/src/common-utils.c @@ -1493,7 +1493,7 @@ gf_string2bytesize_range (const char *str, uint64_t *n, uint64_t max) value *= GF_UNIT_TB; else if (strcasecmp (tail, GF_UNIT_PB_STRING) == 0) value *= GF_UNIT_PB; - else + else if (strcasecmp (tail, GF_UNIT_B_STRING) != 0) return -1; } |