Distributed Hash Table File System for Linux








protocol.c File Reference

#include "magma.h"

Variables

const peertype_t PEER_TYPE_NODE = 1
const peertype_t PEER_TYPE_FLARE = 2
const peertype_t PEER_TYPE_MOUNT = 2
const peertype_t PEER_TYPE_FUSE = 2
const peertype_t PEER_TYPE_CONSOLE = 3
const peertype_t PEER_TYPE_TELNET = 13
const optype_t MAGMA_OP_TYPE_GETATTR = 1
const optype_t MAGMA_OP_TYPE_READLINK = 2
const optype_t MAGMA_OP_TYPE_GETDIR = 3
const optype_t MAGMA_OP_TYPE_MKNOD = 4
const optype_t MAGMA_OP_TYPE_MKDIR = 5
const optype_t MAGMA_OP_TYPE_UNLINK = 6
const optype_t MAGMA_OP_TYPE_RMDIR = 7
const optype_t MAGMA_OP_TYPE_SYMLINK = 8
const optype_t MAGMA_OP_TYPE_RENAME = 9
const optype_t MAGMA_OP_TYPE_LINK = 10
const optype_t MAGMA_OP_TYPE_CHMOD = 11
const optype_t MAGMA_OP_TYPE_CHOWN = 12
const optype_t MAGMA_OP_TYPE_TRUNCATE = 13
const optype_t MAGMA_OP_TYPE_UTIME = 14
const optype_t MAGMA_OP_TYPE_OPEN = 15
const optype_t MAGMA_OP_TYPE_READ = 16
const optype_t MAGMA_OP_TYPE_WRITE = 17
const optype_t MAGMA_OP_TYPE_STATFS = 18
const optype_t MAGMA_OP_TYPE_FLUSH = 19
const optype_t MAGMA_OP_TYPE_RELEASE = 20
const optype_t MAGMA_OP_TYPE_FSYNC = 21
const optype_t MAGMA_OP_TYPE_OPENDIR = 26
const optype_t MAGMA_OP_TYPE_READDIR = 27
const optype_t MAGMA_OP_TYPE_RELEASEDIR = 28
const optype_t MAGMA_OP_TYPE_FSYNCDIR = 29
const optype_t MAGMA_OP_TYPE_INIT = 30
const optype_t MAGMA_OP_TYPE_DESTROY = 31
const optype_t MAGMA_OP_TYPE_ADD_FLARE_TO_PARENT = 50
const optype_t MAGMA_OP_TYPE_REMOVE_FLARE_FROM_PARENT = 51
const optype_t MAGMA_OP_TYPE_F_OPENDIR = 60
const optype_t MAGMA_OP_TYPE_F_CLOSEDIR = 61
const optype_t MAGMA_OP_TYPE_F_TELLDIR = 62
const optype_t MAGMA_OP_TYPE_F_SEEKDIR = 63
const optype_t MAGMA_OP_TYPE_F_READDIR = 64
const optype_t MAGMA_OP_TYPE_F_OPEN = 70
const optype_t MAGMA_OP_TYPE_F_READ = 71
const optype_t MAGMA_OP_TYPE_F_WRITE = 72
const optype_t MAGMA_OP_TYPE_JOIN = 100
const optype_t MAGMA_OP_TYPE_TRANSMIT_NODE = 101
const optype_t MAGMA_OP_TYPE_GET_KEY = 102
const optype_t MAGMA_OP_TYPE_PUT_KEY = 103
const optype_t MAGMA_OP_TYPE_DROP_KEY = 104
const optype_t MAGMA_OP_TYPE_GET_KEY_CONTENT = 105
const optype_t MAGMA_OP_TYPE_CLOSECONNECTION = 254
const optype_t MAGMA_OP_TYPE_HEARTBEAT = 255

Variable Documentation

Operation type ADD_FLARE_TO_PARENT implemented

Operation type CHMOD

Operation type CHOWN

Operation type CLOSECONNECTION (close connection to MAGMA server)

Operation type DESTROY optional

Opearation type DROP_KEY (I've received this key, forget it)

Operation type F_CLOSEDIR implemented

Operation type F_OPENDIR implemented

Operation type F_READDIR implemented

Operation type F_SEEKDIR implemented

Operation type F_TELLDIR implemented

Operation type FLUSH optional

Operation type FSYNC optional HAVE_SETXATTR

Operation type FSYNCDIR optional

Opearation type GET_KEY (give me a key of your keyspace)

Opearation type GET_KEY_CONTENT (Send me flare contents of this key)

Operation type GETATTR. Need -D_FILE_OFFSET_BITS=64 to compile cleanly

Operaiton type GETDIR. deprecated, see readdir

Operation type HEARTBEAT (see if server is still available)

Operation type INIT optional

Opearation type JOIN (existing network)

Operation type LINK

Operation type MKDIR

Operation type MKNOD

Operation type OPEN

Operation type OPENDIR optional

Opearation type PUT_KEY (take a key of my keyspace)

Operation type READ

Operation type READDIR implemented

Operation type READLINK

Operation type RELEASE optional

Operation type RELEASEDIR optional

Operation type REMOVE_FLARE_FROM_PARENT implemented

Operation type RENAME

Operation type RMDIR

Operation type STATFS

Operation type SYMLINK

Opearation type TRANSMIT_NODE (tell me about another node)

Operation type TRUNCATE

Operation type UNLINK

Operation type UTIME

Operation type WRITE

identify a console connection

identify a flare system client

an alias for flare system client

an alias for flare system client

identify a magma server exchanging data

identify a console connection

This file last modified Wednesday, 09-Jan-2008 20:02:22 CET