diff options
author | Raghavendra Bhat <raghavendra@redhat.com> | 2014-03-20 14:46:02 +0530 |
---|---|---|
committer | Rajesh Joseph <rjoseph@redhat.com> | 2014-03-24 07:45:09 -0700 |
commit | 123db32a53f7e2f99c0d63b368ed8a8ee6b41f62 (patch) | |
tree | 1323fe73eedfaa6759dd8e468e892ffafcb0d106 /xlators/mgmt/glusterd/src/glusterd.h | |
parent | efe4e29205c5dbddfd1e693a9cad26c1feefbc6f (diff) |
mgmt/glusterd: do cleanup of snapshots in post-validate phase if half baked
objects are there
Change-Id: I372cac98ad054cdc1a6fbc7f6c77c25981063b2f
Signed-off-by: Raghavendra Bhat <raghavendra@redhat.com>
Reviewed-on: http://review.gluster.org/7237
Reviewed-by: Rajesh Joseph <rjoseph@redhat.com>
Tested-by: Rajesh Joseph <rjoseph@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd.h')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd.h b/xlators/mgmt/glusterd/src/glusterd.h index 7e065b77b..e81369ee4 100644 --- a/xlators/mgmt/glusterd/src/glusterd.h +++ b/xlators/mgmt/glusterd/src/glusterd.h @@ -947,9 +947,14 @@ int glusterd_snapshot_brickop (dict_t *dict, char **op_errstr, dict_t *rsp_dict); int glusterd_snapshot (dict_t *dict, char **op_errstr, dict_t *rsp_dict); +int +glusterd_snapshot_postvalidate (dict_t *dict, int32_t op_ret, char **op_errstr, + dict_t *rsp_dict); char * glusterd_build_snap_device_path (char *device, char *snapname); int32_t glusterd_snap_remove (glusterd_snap_t *snap, gf_boolean_t remove_lvm, gf_boolean_t force); +int32_t +glusterd_snapshot_cleanup (dict_t *dict, char **op_errstr, dict_t *rsp_dict); #endif |