Network Block Device  @PACKAGE_VERSION@
treefiles.h
Go to the documentation of this file.
1 #ifndef NBD_TREEFILES_H
2 #define NBD_TREEFILES_H
3 
4 #define TREEDIRSIZE 1024 /**< number of files per subdirectory (or subdirs per subdirectory) */
5 #define TREEPAGESIZE 4096 /**< tree (block) files uses those chunks */
6 
7 void construct_path(char *name, int lenmax, off_t size, off_t pos, off_t *ppos);
8 void delete_treefile(char *name, off_t size, off_t pos);
9 void mkdir_path(char *path);
10 int open_treefile(char *name, mode_t mode, off_t size, off_t pos, pthread_mutex_t *mutex);
11 
12 #endif
void delete_treefile(char *name, off_t size, off_t pos)
Definition: treefiles.c:37
void mkdir_path(char *path)
Definition: treefiles.c:49
void construct_path(char *name, int lenmax, off_t size, off_t pos, off_t *ppos)
Tree structure helper functions.
Definition: treefiles.c:20
int open_treefile(char *name, mode_t mode, off_t size, off_t pos, pthread_mutex_t *mutex)
Definition: treefiles.c:62