File: treefiles.h

package info (click to toggle)
nbd 1:3.20-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 5,960 kB
  • sloc: ansic: 7,494; sh: 6,496; makefile: 147
file content (12 lines) | stat: -rw-r--r-- 484 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
#ifndef NBD_TREEFILES_H
#define NBD_TREEFILES_H

#define TREEDIRSIZE  1024 /**< number of files per subdirectory (or subdirs per subdirectory) */
#define TREEPAGESIZE 4096 /**< tree (block) files uses those chunks */

void construct_path(char *name, int lenmax, off_t size, off_t pos, off_t *ppos);
void delete_treefile(char *name, off_t size, off_t pos);
void mkdir_path(char *path);
int open_treefile(char *name, mode_t mode, off_t size, off_t pos, pthread_mutex_t *mutex);

#endif