diff options
Diffstat (limited to 'src/unionfs.h')
-rw-r--r-- | src/unionfs.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/unionfs.h b/src/unionfs.h index f941156..74b824f 100644 --- a/src/unionfs.h +++ b/src/unionfs.h @@ -9,13 +9,20 @@ #define PATHLEN_MAX 1024 #define HIDETAG "_HIDDEN~" -#define METADIR ".unionfs/" + +#define METANAME ".unionfs" +#define METADIR (METANAME "/") // string concetanation! + +// fuse meta files, we might want to hide those +#define FUSE_META_FILE ".fuse_hidden" +#define FUSE_META_LENGTH 12 // file access protection mask #define S_PROT_MASK (S_ISUID| S_ISGID | S_ISVTX | S_IRWXU | S_IRWXG | S_IRWXO) typedef struct { char *path; + int path_len; // strlen(path) int fd; // used to prevent accidental umounts of path unsigned char rw; // the writable flag } branch_entry_t; |