diff options
author | Sachin Pandit <spandit@redhat.com> | 2014-03-10 12:02:08 +0530 |
---|---|---|
committer | Rajesh Joseph <rjoseph@redhat.com> | 2014-03-10 06:36:25 -0700 |
commit | 077afd496b2ce24b1d5aebfeb79795b68e357cdd (patch) | |
tree | ef010eb15d06b89b73832463fc5c21989b1c4de9 /cli | |
parent | 9fe1f24e42fa54b58616cd846fce76ab60d7e4e8 (diff) |
glusterd/snapshot : Show volume status in snap info.
Change-Id: Ifa090b158ca23402fb6afa4f3b65fad1446f350d
Signed-off-by: Sachin Pandit <spandit@redhat.com>
Reviewed-on: http://review.gluster.org/7212
Reviewed-by: Vijaikumar Mallikarjuna <vmallika@redhat.com>
Reviewed-by: Rajesh Joseph <rjoseph@redhat.com>
Tested-by: Rajesh Joseph <rjoseph@redhat.com>
Diffstat (limited to 'cli')
-rw-r--r-- | cli/src/cli-rpc-ops.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/cli/src/cli-rpc-ops.c b/cli/src/cli-rpc-ops.c index 60abfc1bf..42e41ce33 100644 --- a/cli/src/cli-rpc-ops.c +++ b/cli/src/cli-rpc-ops.c @@ -7786,6 +7786,18 @@ cli_get_each_volinfo_in_snap (dict_t *dict, char *keyprefix, goto out; } cli_out ("%s%-12s %s", indent, "UUID:", get_buffer); + + ret = snprintf (key, sizeof (key), "%s.vol-status", keyprefix); + if (ret < 0) { + goto out; + } + + ret = dict_get_str (dict, key, &get_buffer); + if (ret) { + gf_log ("cli", GF_LOG_ERROR, "Failed to get %s", key); + goto out; + } + cli_out ("%s%-12s %s", indent, "Status:", get_buffer); out : return ret; } |