|
Network Block Device
@PACKAGE_VERSION@
|
#include "lfs.h"#include <fcntl.h>#include <inttypes.h>#include <stdio.h>#include <unistd.h>#include <sys/stat.h>#include <sys/types.h>#include <glib.h>#include <backend.h>#include <config.h>#include <cliserv.h>#include <treefiles.h>#include <nbd-debug.h>#include <nbdsrv.h>Go to the source code of this file.
Functions | |
| void | construct_path (char *name, int lenmax, off_t size, off_t pos, off_t *ppos) |
| Tree structure helper functions. More... | |
| 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) |
| void construct_path | ( | char * | name, |
| int | lenmax, | ||
| off_t | size, | ||
| off_t | pos, | ||
| off_t * | ppos | ||
| ) |
Tree structure helper functions.
Definition at line 20 of file treefiles.c.
References construct_path(), err(), TREEDIRSIZE, and TREEPAGESIZE.
Referenced by construct_path(), delete_treefile(), and open_treefile().
| void delete_treefile | ( | char * | name, |
| off_t | size, | ||
| off_t | pos | ||
| ) |
Definition at line 37 of file treefiles.c.
References construct_path(), and DEBUG.
| void mkdir_path | ( | char * | path | ) |
| int open_treefile | ( | char * | name, |
| mode_t | mode, | ||
| off_t | size, | ||
| off_t | pos, | ||
| pthread_mutex_t * | mutex | ||
| ) |
Definition at line 62 of file treefiles.c.
References construct_path(), DEBUG, err(), handle, mkdir_path(), myseek(), and TREEPAGESIZE.
Referenced by get_filepos().
1.8.8