Block delete function added (probably buggy).
[vcfs.git] / vcfs.h
CommitLineData
d5cf5351 1#ifndef _VCFS_H
2#define _VCFS_H
3
4#include <time.h>
5#include <inttypes.h>
6
7#include "blocktree.h"
8
9typedef loff_t vc_ino_t;
10typedef loff_t vc_rev_t;
11
12struct revrec {
13 u_int64_t ct;
14 struct btnode root;
15};
16
17struct 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
27struct dentry {
28 u_int64_t inode;
29 char name[256];
30};
31
32#endif