|
Coda Distributed File System
|
#include <stdio.h>#include "coda_assert.h"#include <sys/param.h>#include <netinet/in.h>#include <fcntl.h>#include <unistd.h>#include <sys/mman.h>#include <errno.h>#include "coda_string.h"#include <stdlib.h>#include <stdint.h>#include <dirent.h>#include <lwp/lwp.h>#include <lwp/lock.h>#include <rvmlib.h>#include <ctype.h>#include "codadir.h"#include "dirbody.h"
Classes | |
| struct | DirFind |
| struct | DirStat |
Macros | |
| #define | DIRBLKSIZ 0x1000 |
| #define | minEntry 12 /* XXX */ |
| #define | TO_RVM 1 |
| #define | TO_VM 0 |
Functions | |
| void | DIR_Print (PDirHeader, FILE *f) |
| struct DirEntry * | dir_GetBlob (struct DirHeader *dir, long blobno) |
| void | DIR_check_trans (const char *where, const char *file) |
| int | DIR_rvm (void) |
| struct PageHeader * | DIR_Page (struct DirHeader *dirh, int page) |
| int | dir_PrintChar (char *addr, int nbits, char *buff) |
| int | DIR_Init (int data_loc) |
| void | DH_PrintStats (FILE *fp) |
| int | DIR_LookupByFid (PDirHeader dhp, char *name, DirFid *fid) |
| int | DIR_Length (struct DirHeader *dir) |
| int | DIR_Create (struct DirHeader **dh, const char *entry, DirFid *fid) |
| int | DIR_Delete (struct DirHeader *dir, const char *entry) |
| int | DIR_MakeDir (struct DirHeader **dir, DirFid *me, DirFid *parent) TRANSACTION_OPTIONAL |
| void | DIR_Setpages (PDirHeader dirh, int pages) |
| void | DIR_Free (struct DirHeader *dir, int in_rvm) TRANSACTION_OPTIONAL |
| int | DIR_PrintEntry (PDirEntry entry, FILE *f) |
| void | DIR_PrintChain (PDirHeader dir, int chain, FILE *f) |
| int | DIR_Lookup (struct DirHeader *dir, const char *entry, DirFid *fid, int flags) |
| int | dir_HkCompare (PDirEntry de, void *hook) |
| int | DIR_Convert (PDirHeader dir, char *file, VolumeId vol, RealmId realm) |
| int | DIR_EnumerateDir (struct DirHeader *dhp, int(*hookproc)(struct DirEntry *de, void *hook), void *hook) |
| int | DIR_Compare (PDirHeader d1, PDirHeader d2) |
| void | dir_Copy (PDirHeader old, PDirHeader *new, int to_rvm) TRANSACTION_OPTIONAL |
| int | DIR_IsEmpty (struct DirHeader *dhp) |
| int | DIR_Hash (const char *string) |
| int | dir_FindCaseInsensitive (PDirEntry de, void *hook) |
| int | DIR_DirOK (PDirHeader pdh) |
Variables | |
| int | dir_data_in_rvm |
| struct DirStat | dir_stats |
| #define DIRBLKSIZ 0x1000 |
| #define minEntry 12 /* XXX */ |
| #define TO_RVM 1 |
| #define TO_VM 0 |
| void DH_PrintStats | ( | FILE * | fp | ) |
|
inline |
| int DIR_Compare | ( | PDirHeader | d1, |
| PDirHeader | d2 | ||
| ) |
| int DIR_Convert | ( | PDirHeader | dir, |
| char * | file, | ||
| VolumeId | vol, | ||
| RealmId | realm | ||
| ) |
| void dir_Copy | ( | PDirHeader | old, |
| PDirHeader * | new, | ||
| int | to_rvm | ||
| ) |
| int DIR_Create | ( | struct DirHeader ** | dh, |
| const char * | entry, | ||
| DirFid * | fid | ||
| ) |
| int DIR_Delete | ( | struct DirHeader * | dir, |
| const char * | entry | ||
| ) |
| int DIR_DirOK | ( | PDirHeader | pdh | ) |
| int DIR_EnumerateDir | ( | struct DirHeader * | dhp, |
| int(*)(struct DirEntry *de, void *hook) | hookproc, | ||
| void * | hook | ||
| ) |
| int dir_FindCaseInsensitive | ( | PDirEntry | de, |
| void * | hook | ||
| ) |
| void DIR_Free | ( | struct DirHeader * | dir, |
| int | in_rvm | ||
| ) |
| int DIR_Hash | ( | const char * | string | ) |
| int dir_HkCompare | ( | PDirEntry | de, |
| void * | hook | ||
| ) |
| int DIR_Init | ( | int | data_loc | ) |
| int DIR_IsEmpty | ( | struct DirHeader * | dhp | ) |
| int DIR_Length | ( | struct DirHeader * | dir | ) |
| int DIR_Lookup | ( | struct DirHeader * | dir, |
| const char * | entry, | ||
| DirFid * | fid, | ||
| int | flags | ||
| ) |
| int DIR_LookupByFid | ( | PDirHeader | dhp, |
| char * | name, | ||
| DirFid * | fid | ||
| ) |
| int DIR_MakeDir | ( | struct DirHeader ** | dir, |
| DirFid * | me, | ||
| DirFid * | parent | ||
| ) |
| struct PageHeader * DIR_Page | ( | struct DirHeader * | dirh, |
| int | page | ||
| ) |
| void DIR_Print | ( | PDirHeader | dir, |
| FILE * | f | ||
| ) |
| void DIR_PrintChain | ( | PDirHeader | dir, |
| int | chain, | ||
| FILE * | f | ||
| ) |
| int dir_PrintChar | ( | char * | addr, |
| int | nbits, | ||
| char * | buff | ||
| ) |
| int DIR_PrintEntry | ( | PDirEntry | entry, |
| FILE * | f | ||
| ) |
| int DIR_rvm | ( | void | ) |
| void DIR_Setpages | ( | PDirHeader | dirh, |
| int | pages | ||
| ) |
| int dir_data_in_rvm |
| struct DirStat dir_stats |