diff options
Diffstat (limited to 'cli/src/cli3_1-cops.c')
-rw-r--r-- | cli/src/cli3_1-cops.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cli/src/cli3_1-cops.c b/cli/src/cli3_1-cops.c index 0984a793694..2c64f115e23 100644 --- a/cli/src/cli3_1-cops.c +++ b/cli/src/cli3_1-cops.c @@ -1409,7 +1409,7 @@ int32_t gf_cli3_1_start_volume (call_frame_t *frame, xlator_t *this, void *data) { - gf1_cli_start_vol_req req = {0,}; + gf1_cli_start_vol_req *req = NULL; int ret = 0; cli_local_t *local = NULL; @@ -1418,16 +1418,16 @@ gf_cli3_1_start_volume (call_frame_t *frame, xlator_t *this, goto out; } + req = data; local = cli_local_get (); if (local) { - local->u.start_vol.volname = data; + local->u.start_vol.volname = req->volname; + local->u.start_vol.flags = req->flags; frame->local = local; } - req.volname = data; - - ret = cli_cmd_submit (&req, frame, cli_rpc_prog, + ret = cli_cmd_submit (req, frame, cli_rpc_prog, GD_MGMT_CLI_START_VOLUME, NULL, gf_xdr_from_cli_start_vol_req, this, gf_cli3_1_start_volume_cbk); |