Commit | Line | Data |
d5cf5351 |
1 | #ifndef _VCFS_H |
2 | #define _VCFS_H |
3 | |
4 | #include <time.h> |
5 | #include <inttypes.h> |
6 | |
7 | #include "blocktree.h" |
8 | |
34b0b353 |
9 | #define DIRBLSIZE 4 |
10 | #define INOBLSIZE 4 |
11 | |
d5cf5351 |
12 | typedef loff_t vc_ino_t; |
13 | typedef loff_t vc_rev_t; |
14 | |
15 | struct revrec { |
16 | u_int64_t ct; |
17 | struct btnode root; |
18 | }; |
19 | |
20 | struct inode { |
21 | u_int32_t mode; |
22 | u_int64_t mtime, ctime; |
23 | u_int64_t size; |
24 | u_int32_t uid, gid; |
25 | u_int32_t links; |
26 | struct btnode data; |
27 | struct btnode xattr; |
28 | }; |
29 | |
30 | struct dentry { |
31 | u_int64_t inode; |
32 | char name[256]; |
33 | }; |
34 | |
35 | #endif |