diff options
author | Raghavendra Bhat <raghavendra@redhat.com> | 2013-11-29 12:13:28 +0530 |
---|---|---|
committer | Raghavendra Bhat <raghavendra@redhat.com> | 2013-12-02 18:20:52 +0530 |
commit | 30228525ee04694eb4e2fd367cab6779ffb769dc (patch) | |
tree | 51519c8f429dce671185fe9db861e2757fe31dc3 /xlators/mgmt/glusterd/src/glusterd.h | |
parent | 16edf27198de7efca8a0eff3955d36dee9edde67 (diff) |
mgmt/glusterd: handle issues present in snapshot create and snap management
Change-Id: I94b5f6e00be7d1ff0c454e291c779dae7b423748
Signed-off-by: Raghavendra Bhat <raghavendra@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd.h')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd.h b/xlators/mgmt/glusterd/src/glusterd.h index fb4f32a82..19c05c45c 100644 --- a/xlators/mgmt/glusterd/src/glusterd.h +++ b/xlators/mgmt/glusterd/src/glusterd.h @@ -359,7 +359,7 @@ struct glusterd_snap_cg_ { int64_t volume_count; struct list_head cg_list; gf_store_handle_t *shandle; - glusterd_volinfo_t volumes[0]; + glusterd_volinfo_t *volumes[0]; }; typedef struct glusterd_snap_cg_ glusterd_snap_cg_t; @@ -412,7 +412,14 @@ enum glusterd_vol_comp_status_ { #define GLUSTERD_VOL_SNAP_DIR_PREFIX "snaps" #define GLUSTERD_VOL_SNAP_CG_DIR_PREFIX "cgs" -#define GLUSTERD_DEFAULT_SNAPS_BRICK_DIR "/var/run/gluster/snaps" +/* TODO: It was supposed to be /var/run/gluster. But /var/run seems + to be a symbolic link to /run/gluster which creates problems + as the entry point in the mtab for the mount point and + glusterd maintained entry point will be different. Verify + properly on which path should be used for creating the + brick directories of snap volumes +*/ +#define GLUSTERD_DEFAULT_SNAPS_BRICK_DIR "/run/gluster/snaps" /* definitions related to replace brick */ #define RB_CLIENT_MOUNTPOINT "rb_mount" @@ -899,6 +906,8 @@ int glusterd_snapshot_prevalidate (dict_t *dict, char **op_errstr, dict_t *rsp_dict); 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); char * glusterd_build_snap_device_path (char *device, char *snapname); |