From 1180b2136f6cf014a08f072f8ecc4aac2b69580f Mon Sep 17 00:00:00 2001 From: Pranith K Date: Fri, 25 Mar 2011 05:58:35 +0000 Subject: mgmt/glusterd: Fix import friend volumes - Sync transport type of the volume - Stop stale bricks - start new bricks if the volume is started - Restart/Stop nfs server based on the new information Signed-off-by: Pranith Kumar K Signed-off-by: Vijay Bellur BUG: 2549 (Quota[glusterfs-3.2.1qa3]: enable/disable crashes the glusterd on other node) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2549 --- xlators/mgmt/glusterd/src/glusterd-utils.h | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'xlators/mgmt/glusterd/src/glusterd-utils.h') diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.h b/xlators/mgmt/glusterd/src/glusterd-utils.h index e42d467f6..ffb9e971a 100644 --- a/xlators/mgmt/glusterd/src/glusterd-utils.h +++ b/xlators/mgmt/glusterd/src/glusterd-utils.h @@ -157,7 +157,7 @@ void glusterd_set_volume_status (glusterd_volinfo_t *volinfo, glusterd_volume_status status); int -glusterd_check_generate_start_nfs (glusterd_volinfo_t *volinfo); +glusterd_check_generate_start_nfs (void); int32_t glusterd_volume_count_get (void); int32_t @@ -172,7 +172,7 @@ void glusterd_set_brick_status (glusterd_brickinfo_t *brickinfo, gf_brick_status_t status); -int +gf_boolean_t glusterd_is_brick_started (glusterd_brickinfo_t *brickinfo); int @@ -206,7 +206,7 @@ int glusterd_new_brick_validate (char *brick, glusterd_brickinfo_t *brickinfo, char *op_errstr, size_t len); int32_t -glusterd_volume_bricks_delete (glusterd_volinfo_t *volinfo); +glusterd_volume_brickinfos_delete (glusterd_volinfo_t *volinfo); int32_t glusterd_volume_brickinfo_get (uuid_t uuid, char *hostname, char *path, glusterd_volinfo_t *volinfo, @@ -257,4 +257,16 @@ int glusterd_clear_pending_nodes (struct list_head *list); gf_boolean_t glusterd_peerinfo_is_uuid_unknown (glusterd_peerinfo_t *peerinfo); +int32_t +glusterd_brick_connect (glusterd_volinfo_t *volinfo, + glusterd_brickinfo_t *brickinfo); +int32_t +glusterd_brick_disconnect (glusterd_brickinfo_t *brickinfo); +int32_t +glusterd_delete_volume (glusterd_volinfo_t *volinfo); +int32_t +glusterd_delete_brick (glusterd_volinfo_t* volinfo, + glusterd_brickinfo_t *brickinfo); +int32_t +glusterd_delete_all_bricks (glusterd_volinfo_t* volinfo); #endif -- cgit