Coda Distributed File System
Macros | Functions
lka.c File Reference
#include <sys/param.h>
#include <stdio.h>
#include <ctype.h>
#include <errno.h>
#include <unistd.h>
#include <stdlib.h>
#include <assert.h>
#include "coda_string.h"
#include <copyfile.h>
#include "lka_private.h"
Include dependency graph for lka.c:

Macros

#define O_BINARY   0
 
#define USAGESTR    "Usage: cfs lka [--clear] [+/-<db1>] [+/-<db2>] [+/-<db3>] ...\n cfs lka --list\n"
 
#define RESIZEBUF()
 

Functions

int LookAsideAndFillContainer (unsigned char sha[SHA_DIGEST_LENGTH], int cfd, int expectedlength, const char *codaprefix, char *emsgbuf, int emsgbuflen)
 
int LKParseAndExecute (char *command, char *emsgbuf, int emsgbuflen)
 

Macro Definition Documentation

◆ O_BINARY

#define O_BINARY   0

◆ RESIZEBUF

#define RESIZEBUF ( )
Value:
emptr = emsgbuf + strlen(emsgbuf); \
eleft = emsgbuflen - (emptr - emsgbuf);

◆ USAGESTR

#define USAGESTR    "Usage: cfs lka [--clear] [+/-<db1>] [+/-<db2>] [+/-<db3>] ...\n cfs lka --list\n"

Function Documentation

◆ LKParseAndExecute()

int LKParseAndExecute ( char *  command,
char *  emsgbuf,
int  emsgbuflen 
)

◆ LookAsideAndFillContainer()

int LookAsideAndFillContainer ( unsigned char  sha[SHA_DIGEST_LENGTH],
int  cfd,
int  expectedlength,
const char *  codaprefix,
char *  emsgbuf,
int  emsgbuflen 
)