Network Block Device @PACKAGE_VERSION@

treefiles.h

Go to the documentation of this file.
00001 #ifndef NBD_TREEFILES_H
00002 #define NBD_TREEFILES_H
00003 
00004 #define TREEDIRSIZE  1024 /**< number of files per subdirectory (or subdirs per subdirectory) */
00005 #define TREEPAGESIZE 4096 /**< tree (block) files uses those chunks */
00006 
00007 void construct_path(char *name, int lenmax, off_t size, off_t pos, off_t *ppos);
00008 void delete_treefile(char *name, off_t size, off_t pos);
00009 void mkdir_path(char *path);
00010 int open_treefile(char *name, mode_t mode, off_t size, off_t pos, pthread_mutex_t *mutex);
00011 
00012 #endif