xv6-cs450/fsvar.h

21 lines
432 B
C
Raw Normal View History

// in-core file system types
struct inode {
2006-09-07 17:31:33 +02:00
uint dev; // Device number
uint inum; // Inode number
int ref; // Reference count
int flags; // I_BUSY, I_VALID
2006-09-07 17:31:33 +02:00
short type; // copy of disk inode
2006-08-08 20:07:37 +02:00
short major;
short minor;
short nlink;
uint size;
uint addrs[NADDRS];
};
2006-07-22 00:10:40 +02:00
2007-08-20 20:23:52 +02:00
#define ROOTDEV 1 // Device number of root file system
#define I_BUSY 0x1
#define I_VALID 0x2