Distributed File System 1
Distributed file system in C
Loading...
Searching...
No Matches
copy.c File Reference
#include <stdio.h>
#include <assert.h>
#include <stdlib.h>
#include <unistd.h>
#include "lib/lib.h"
#include "lib/enchufe.h"
#include "lib/dnode.h"
#include "lib/log.h"

Macros

#define BUF_LEN   0x1000

Functions

void server_to_client (Enchufe dnode, UUID cid, FILE *f)
 Copies from the server to the client.
UUID client_to_server (Enchufe dnode, LazyBuffer *b, size_t nbytes, size_t chunks_per_dnode)
 Copy from the client to the server.
int main (int argc, char **argv)
 This is the copy client implementation.

Macro Definition Documentation

◆ BUF_LEN

#define BUF_LEN   0x1000

Function Documentation

◆ client_to_server()

UUID client_to_server ( Enchufe dnode,
LazyBuffer * b,
size_t nbytes,
size_t chunks_per_dnode )

Copy from the client to the server.

◆ main()

int main ( int argc,
char ** argv )

This is the copy client implementation.

◆ server_to_client()

void server_to_client ( Enchufe dnode,
UUID cid,
FILE * f )

Copies from the server to the client.