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 | |
9 | typedef loff_t vc_ino_t; |
10 | typedef loff_t vc_rev_t; |
11 | |
12 | struct revrec { |
13 | u_int64_t ct; |
14 | struct btnode root; |
15 | }; |
16 | |
17 | struct inode { |
18 | u_int32_t mode; |
19 | u_int64_t mtime, ctime; |
20 | u_int64_t size; |
21 | u_int32_t uid, gid; |
22 | u_int32_t links; |
23 | struct btnode data; |
24 | struct btnode xattr; |
25 | }; |
26 | |
27 | struct dentry { |
28 | u_int64_t inode; |
29 | char name[256]; |
30 | }; |
31 | |
32 | #endif |