summaryrefslogtreecommitdiffstats
path: root/glfs-operations.h
diff options
context:
space:
mode:
Diffstat (limited to 'glfs-operations.h')
-rw-r--r--glfs-operations.h19
1 files changed, 1 insertions, 18 deletions
diff --git a/glfs-operations.h b/glfs-operations.h
index c2bf076..abfcb27 100644
--- a/glfs-operations.h
+++ b/glfs-operations.h
@@ -22,15 +22,6 @@
# include "rpc/block.h"
-typedef enum Metakey {
- GBID = 0,
- SIZE = 1,
- HA = 2,
- ENTRYCREATE = 3,
-
- METAKEY__MAX = 4 /* Updata this when add new Key */
-} Metakey;
-
typedef struct NodeInfo {
char addr[255];
@@ -47,14 +38,6 @@ typedef struct MetaInfo {
NodeInfo **list;
} MetaInfo;
-static const char *const MetakeyLookup[] = {
- [GBID] = "GBID",
- [SIZE] = "SIZE",
- [HA] = "HA",
- [ENTRYCREATE] = "ENTRYCREATE",
- [METAKEY__MAX] = NULL,
-};
-
struct glfs *
glusterBlockVolumeInit(char *volume, char *volfileserver);
@@ -68,7 +51,7 @@ glusterBlockDeleteEntry(char *volume, char *gbid);
struct glfs_fd *
glusterBlockCreateMetaLockFile(struct glfs *glfs);
-void
+int
blockGetMetaInfo(struct glfs *glfs, char *metafile, MetaInfo *info);
void