From 077afd496b2ce24b1d5aebfeb79795b68e357cdd Mon Sep 17 00:00:00 2001 From: Sachin Pandit Date: Mon, 10 Mar 2014 12:02:08 +0530 Subject: glusterd/snapshot : Show volume status in snap info. Change-Id: Ifa090b158ca23402fb6afa4f3b65fad1446f350d Signed-off-by: Sachin Pandit Reviewed-on: http://review.gluster.org/7212 Reviewed-by: Vijaikumar Mallikarjuna Reviewed-by: Rajesh Joseph Tested-by: Rajesh Joseph --- cli/src/cli-rpc-ops.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'cli/src') 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; } -- cgit