xv6/fsvar.h

22 lines
468 B
C
Raw Normal View History

// in-core file system types
struct inode {
2006-09-07 15:31:33 +00:00
uint dev; // Device number
uint inum; // Inode number
int ref; // Reference count
int busy; // Is the inode "locked"?
short type; // copy of disk inode
2006-08-08 18:07:37 +00:00
short major;
short minor;
short nlink;
uint size;
uint addrs[NADDRS];
};
2006-07-21 22:10:40 +00:00
2007-08-20 18:23:52 +00:00
#define ROOTDEV 1 // Device number of root file system
#define NAMEI_LOOKUP 1
#define NAMEI_CREATE 2
#define NAMEI_DELETE 3