|
Network Block Device
@PACKAGE_VERSION@
|
Go to the source code of this file.
Macros | |
| #define | TREEDIRSIZE 1024 |
| number of files per subdirectory (or subdirs per subdirectory) More... | |
| #define | TREEPAGESIZE 4096 |
| tree (block) files uses those chunks More... | |
Functions | |
| void | construct_path (char *name, int lenmax, off_t size, off_t pos, off_t *ppos) |
| Tree structure helper functions. More... | |
| void | delete_treefile (char *name, off_t size, off_t pos) |
| void | mkdir_path (char *path) |
| int | open_treefile (char *name, mode_t mode, off_t size, off_t pos, pthread_mutex_t *mutex) |
| #define TREEDIRSIZE 1024 |
number of files per subdirectory (or subdirs per subdirectory)
Definition at line 4 of file treefiles.h.
Referenced by construct_path().
| #define TREEPAGESIZE 4096 |
tree (block) files uses those chunks
Definition at line 5 of file treefiles.h.
Referenced by construct_path(), get_filepos(), open_treefile(), and setupexport().
| void construct_path | ( | char * | name, |
| int | lenmax, | ||
| off_t | size, | ||
| off_t | pos, | ||
| off_t * | ppos | ||
| ) |
Tree structure helper functions.
Definition at line 20 of file treefiles.c.
References construct_path(), err(), TREEDIRSIZE, and TREEPAGESIZE.
Referenced by construct_path(), delete_treefile(), and open_treefile().
| void delete_treefile | ( | char * | name, |
| off_t | size, | ||
| off_t | pos | ||
| ) |
Definition at line 37 of file treefiles.c.
References construct_path(), and DEBUG.
| void mkdir_path | ( | char * | path | ) |
| int open_treefile | ( | char * | name, |
| mode_t | mode, | ||
| off_t | size, | ||
| off_t | pos, | ||
| pthread_mutex_t * | mutex | ||
| ) |
Definition at line 62 of file treefiles.c.
References construct_path(), DEBUG, err(), handle, mkdir_path(), myseek(), and TREEPAGESIZE.
Referenced by get_filepos().
1.8.8