From 5f7018275bf8006ff758817037d03936b8a95d43 Mon Sep 17 00:00:00 2001 From: Vijay Bellur Date: Mon, 9 Aug 2010 07:42:02 +0000 Subject: glusterd: restore peer information upon restart Signed-off-by: Vijay Bellur Signed-off-by: Anand V. Avati BUG: 1310 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1310 --- xlators/mgmt/glusterd/src/glusterd-store.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'xlators/mgmt/glusterd/src/glusterd-store.h') diff --git a/xlators/mgmt/glusterd/src/glusterd-store.h b/xlators/mgmt/glusterd/src/glusterd-store.h index c3be2150..b9b93d9c 100644 --- a/xlators/mgmt/glusterd/src/glusterd-store.h +++ b/xlators/mgmt/glusterd/src/glusterd-store.h @@ -50,6 +50,10 @@ #define GLUSTERD_STORE_KEY_BRICK_HOSTNAME "hostname" #define GLUSTERD_STORE_KEY_BRICK_PATH "path" +#define GLUSTERD_STORE_KEY_PEER_UUID "uuid" +#define GLUSTERD_STORE_KEY_PEER_HOSTNAME "hostname" +#define GLUSTERD_STORE_KEY_PEER_STATE "state" + #define glusterd_for_each_entry(entry, dir) \ do {\ entry = readdir (dir);\ @@ -85,6 +89,9 @@ glusterd_store_update_volume (glusterd_volinfo_t *volinfo); int32_t glusterd_retrieve_uuid (); +int32_t +glusterd_store_update_peerinfo (glusterd_peerinfo_t *peerinfo); + int32_t glusterd_restore (); #endif -- cgit