Coda Distributed File System
Classes | Macros | Functions
dirbody.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  DirBlob
 
struct  PageHeader
 
struct  DirHeader
 

Macros

#define O_BINARY   0
 
#define LOGPS   11 /* log page size */
 
#define NHASH   128 /* entries in the hash tbl */
 
#define EPP   64 /* dir entries per page */
 
#define LEPP   6 /* log above */
 
#define ESZ   32 /* entry size (PAGESIZE / EPP) */
 
#define LESZ   5 /* log above */
 
#define DHE   12 /* entries in a dir header above a page header */
 
#define FFIRST   (char)1
 

Functions

int DIR_rvm (void)
 
int DIR_IsEmpty (PDirHeader)
 
void DIR_Free (struct DirHeader *, int)
 
int DirHash (char *)
 
int DirToNetBuf (long *, char *, int, int *)
 
void DIR_CpyVol (struct ViceFid *target, struct ViceFid *source)
 
int DIR_MakeDir (struct DirHeader **dir, struct DirFid *me, struct DirFid *parent)
 
int DIR_LookupByFid (PDirHeader dhp, char *name, struct DirFid *fid)
 
int DIR_Lookup (struct DirHeader *dir, const char *entry, struct DirFid *fid, int flags)
 
int DIR_EnumerateDir (struct DirHeader *dhp, int(*hookproc)(struct DirEntry *de, void *hook), void *hook)
 
int DIR_Create (struct DirHeader **dh, const char *entry, struct DirFid *fid)
 
int DIR_Length (struct DirHeader *dir)
 
int DIR_Delete (struct DirHeader *dir, const char *entry)
 
void DIR_PrintChain (PDirHeader dir, int chain, FILE *f)
 
int DIR_Hash (const char *string)
 
int DIR_DirOK (PDirHeader pdh)
 
int DIR_Convert (PDirHeader dir, char *file, VolumeId vol, RealmId realm)
 
void DIR_Setpages (PDirHeader, int)
 

Macro Definition Documentation

◆ DHE

#define DHE   12 /* entries in a dir header above a page header */

◆ EPP

#define EPP   64 /* dir entries per page */

◆ ESZ

#define ESZ   32 /* entry size (PAGESIZE / EPP) */

◆ FFIRST

#define FFIRST   (char)1

◆ LEPP

#define LEPP   6 /* log above */

◆ LESZ

#define LESZ   5 /* log above */

◆ LOGPS

#define LOGPS   11 /* log page size */

◆ NHASH

#define NHASH   128 /* entries in the hash tbl */

◆ O_BINARY

#define O_BINARY   0

Function Documentation

◆ DIR_Convert()

int DIR_Convert ( PDirHeader  dir,
char *  file,
VolumeId  vol,
RealmId  realm 
)

◆ DIR_CpyVol()

void DIR_CpyVol ( struct ViceFid *  target,
struct ViceFid *  source 
)

◆ DIR_Create()

int DIR_Create ( struct DirHeader **  dh,
const char *  entry,
struct DirFid *  fid 
)

◆ DIR_Delete()

int DIR_Delete ( struct DirHeader dir,
const char *  entry 
)

◆ DIR_DirOK()

int DIR_DirOK ( PDirHeader  pdh)

◆ DIR_EnumerateDir()

int DIR_EnumerateDir ( struct DirHeader dhp,
int(*)(struct DirEntry *de, void *hook)  hookproc,
void *  hook 
)

◆ DIR_Free()

void DIR_Free ( struct DirHeader dir,
int  in_rvm 
)

◆ DIR_Hash()

int DIR_Hash ( const char *  string)

◆ DIR_IsEmpty()

int DIR_IsEmpty ( PDirHeader  )

◆ DIR_Length()

int DIR_Length ( struct DirHeader dir)

◆ DIR_Lookup()

int DIR_Lookup ( struct DirHeader dir,
const char *  entry,
struct DirFid *  fid,
int  flags 
)

◆ DIR_LookupByFid()

int DIR_LookupByFid ( PDirHeader  dhp,
char *  name,
struct DirFid *  fid 
)

◆ DIR_MakeDir()

int DIR_MakeDir ( struct DirHeader **  dir,
struct DirFid *  me,
struct DirFid *  parent 
)

◆ DIR_PrintChain()

void DIR_PrintChain ( PDirHeader  dir,
int  chain,
FILE *  f 
)

◆ DIR_rvm()

int DIR_rvm ( void  )

◆ DIR_Setpages()

void DIR_Setpages ( PDirHeader  dirh,
int  pages 
)

◆ DirHash()

int DirHash ( char *  )

◆ DirToNetBuf()

int DirToNetBuf ( long *  ,
char *  ,
int  ,
int *   
)