Distributed File System 1
Distributed file system in C
Loading...
Searching...
No Matches
meta-data.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include "lib/enchufe.h"
#include "lib/inode.h"
#include "lib/dnode.h"
#include "lib/block.h"
#include "lib/log.h"

Macros

#define BUF_LEN   0x1000

Functions

void add (DNode node)
void list (Enchufe cliente)
void reg (IPv4 address, Port port)
 Registers a data node.
void put (Enchufe cliente, size_t fsize, SafeStr fname)
 Puts file data on the server.
void get (Enchufe cliente, SafeStr fname)
 Get file data from server.
bool handler (Enchufe enchufe)
 Handles the connections when they come in.
int main (int argc, char **argv)
 This is the main metadata server.

Macro Definition Documentation

◆ BUF_LEN

#define BUF_LEN   0x1000

Function Documentation

◆ add()

void add ( DNode node)

◆ get()

void get ( Enchufe cliente,
SafeStr fname )

Get file data from server.

◆ handler()

bool handler ( Enchufe enchufe)

Handles the connections when they come in.

◆ list()

void list ( Enchufe cliente)

◆ main()

int main ( int argc,
char ** argv )

This is the main metadata server.

◆ put()

void put ( Enchufe cliente,
size_t fsize,
SafeStr fname )

Puts file data on the server.

◆ reg()

void reg ( IPv4 address,
Port port )

Registers a data node.