nbd-client: Fix build on musl + gcc14
[nbd.git] / treefiles.h
blob04466084d417058f723ae25aab7718f828d106a9
1 #ifndef NBD_TREEFILES_H
2 #define NBD_TREEFILES_H
4 #include <pthread.h>
5 #include <sys/types.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);
15 #endif