Distributed Hash Table File System for Linux








vulcano.c File Reference

#include "magma.h"

Defines

#define INCLUDE_FLARE_INTERNALS

Functions

magma_network_tmagma_create_network_ring ()
magma_node_tmagma_create_node (char *node_name, char *fqdn_name, char *ipaddr, int ipport, int bandwidth, int storage)
magma_node_tmagma_fill_node (magma_node_t *node, char *node_name, char *fqdn_name, char *ipaddr, int ipport, int bandwidth, int storage)
magma_node_tmagma_config_myself (char *node_name, char *fqdn_name, char *ipaddr, int ipport, int bandwidth, int storage)
int magma_destroy_node (magma_node_t *node)
int magma_add_node_to_ring_near (magma_node_t *newnode, magma_node_t *sibling)
int magma_check_keyspace_continuity ()
int magma_remove_node_from_ring (magma_node_t *node)
int save_node_profile ()
magma_node_tmagma_get_next_node ()
magma_node_tmagma_get_previous_node ()
void magma_parse_node_line (char *buf, magma_node_t *node)
int magma_load_node_from_dht (magma_node_t *node)
uint8_t magma_node_exists (magma_node_t *node)
void write_profile (int fd)
void cat_profile (char *profile_buf)
void save_status ()
void load_status ()

Variables

magma_node_t myself
magma_network_tlava

Define Documentation

#define INCLUDE_FLARE_INTERNALS


Function Documentation

void cat_profile ( char *  profile_buf  ) 

void load_status (  ) 

int magma_add_node_to_ring_near ( magma_node_t newnode,
magma_node_t sibling 
)

int magma_check_keyspace_continuity (  ) 

magma_node_t* magma_config_myself ( char *  node_name,
char *  fqdn_name,
char *  ipaddr,
int  ipport,
int  bandwidth,
int  storage 
)

magma_network_t* magma_create_network_ring (  ) 

create a new lava ring structure

Returns:
new lava ring structure pointer

magma_node_t* magma_create_node ( char *  node_name,
char *  fqdn_name,
char *  ipaddr,
int  ipport,
int  bandwidth,
int  storage 
)

allocate a new node structure

Parameters:
node_name short name of this node
fqdn_name fully qualified domain name of this node
ipaddr string rappresenting node IP address
ipport node IP port
bandwidth declared bandwidth available
storage declare storage available
Returns:
new node structure pointer

int magma_destroy_node ( magma_node_t node  ) 

magma_node_t* magma_fill_node ( magma_node_t node,
char *  node_name,
char *  fqdn_name,
char *  ipaddr,
int  ipport,
int  bandwidth,
int  storage 
)

magma_node_t* magma_get_next_node (  ) 

magma_node_t* magma_get_previous_node (  ) 

int magma_load_node_from_dht ( magma_node_t node  ) 

uint8_t magma_node_exists ( magma_node_t node  ) 

void magma_parse_node_line ( char *  buf,
magma_node_t node 
)

int magma_remove_node_from_ring ( magma_node_t node  ) 

int save_node_profile (  ) 

void save_status (  ) 

void write_profile ( int  fd  ) 


Variable Documentation

structure hosting the lava ring

structure describing this node

This file last modified Wednesday, 09-Jan-2008 20:03:41 CET