summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoseph Fernandes <josferna@redhat.com>2014-03-19 14:19:25 +0530
committerRajesh Joseph <rjoseph@redhat.com>2014-03-24 05:49:32 -0700
commitefe4e29205c5dbddfd1e693a9cad26c1feefbc6f (patch)
tree87304a023396f91398c7631706315aab9a45e7ac
parenta801b09e0bb50626354de080a39f87090dc0209d (diff)
snapshot restore: Fix error message while volume started.
Repharse of snap restore failure message when volume is started. Change-Id: Ie3e47856f60ff5d395fca1308cea9a5350a861f3 BUG: 1063775 Signed-off-by: Joseph Fernandes <josferna@redhat.com> Reviewed-on: http://review.gluster.org/7295 Reviewed-by: Sachin Pandit <spandit@redhat.com> Reviewed-by: Avra Sengupta <asengupt@redhat.com> Reviewed-by: Rajesh Joseph <rjoseph@redhat.com> Tested-by: Rajesh Joseph <rjoseph@redhat.com>
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-snapshot.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-snapshot.c b/xlators/mgmt/glusterd/src/glusterd-snapshot.c
index 17c31d8..db2d888 100644
--- a/xlators/mgmt/glusterd/src/glusterd-snapshot.c
+++ b/xlators/mgmt/glusterd/src/glusterd-snapshot.c
@@ -231,7 +231,9 @@ glusterd_snapshot_restore_prevalidate (dict_t *dict, char **op_errstr,
}
if (glusterd_is_volume_started (volinfo)) {
- ret = gf_asprintf (op_errstr, "Volume (%s) is running",
+ ret = gf_asprintf (op_errstr, "Volume (%s) has been "
+ "started. Volume needs to be stopped before restoring "
+ "a snapshot.",
volname);
if (ret < 0) {
goto out;