1 #ifndef NBD_TREEFILES_H
2 #define NBD_TREEFILES_H
7 #define TREEDIRSIZE 1024 /**< number of files per subdirectory (or subdirs per subdirectory) */
8 #define TREEPAGESIZE 4096 /**< tree (block) files uses those chunks */
10 void construct_path(char *name
, int lenmax
, off_t size
, off_t pos
, off_t
*ppos
);
11 void delete_treefile(char *name
, off_t size
, off_t pos
);
12 void mkdir_path(char *path
);
13 int open_treefile(char *name
, mode_t mode
, off_t size
, off_t pos
, pthread_mutex_t
*mutex
);