diff options
author | Rajesh Joseph <rjoseph@redhat.com> | 2013-10-31 15:34:44 +0530 |
---|---|---|
committer | Rajesh Joseph <rjoseph@redhat.com> | 2013-10-31 15:35:44 +0530 |
commit | a4b38dedec09370e955fd01fe11367a42abf35f2 (patch) | |
tree | f4aff169857da548838b6c177f6d05d5e13f868f | |
parent | a7799add58c565c7fa8840edda0784e7d5701d49 (diff) |
Snapshot: fix for snapshot create crash
GL-205: Gluster snapshot create crashing.
runner-arg should have NULL as the last argument.
Change-Id: I1bd0090160b53a04a8073c31d91fb77f96f625dc
Signed-off-by: Rajesh Joseph <rjoseph@redhat.com>
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-snapshot.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-snapshot.c b/xlators/mgmt/glusterd/src/glusterd-snapshot.c index a76d316ac..c9512d142 100644 --- a/xlators/mgmt/glusterd/src/glusterd-snapshot.c +++ b/xlators/mgmt/glusterd/src/glusterd-snapshot.c @@ -2286,7 +2286,7 @@ glusterd_remove_snapshot (glusterd_brickinfo_t *brickinfo, char *volname, snprintf (msg, sizeof(msg), "remove snapshot of the brick %s:%s, " "device: %s", brickinfo->hostname, brickinfo->path, snap_device); - runner_add_args (&runner, "/sbin/lvmremove", snap_device); + runner_add_args (&runner, "/sbin/lvmremove", snap_device, NULL); runner_log (&runner, "", GF_LOG_DEBUG, msg); //let glusterd get blocked till snapshot is over @@ -2465,7 +2465,7 @@ glusterd_take_snapshot (glusterd_brickinfo_t *brickinfo, char *volname, snprintf (msg, sizeof (msg), "taking snapshot of the brick %s:%s", brickinfo->hostname, brickinfo->path); runner_add_args (&runner, "/sbin/lvcreate", "-s", device, "--name", - snapname); + snapname, NULL); runner_log (&runner, "", GF_LOG_DEBUG, msg); //let glusterd get blocked till snapshot is over |