1 #ifndef NBD_TREEFILES_H
2 #define NBD_TREEFILES_H
4 #define TREEDIRSIZE 1024 /**< number of files per subdirectory (or subdirs per subdirectory) */
5 #define TREEPAGESIZE 4096 /**< tree (block) files uses those chunks */
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
);