Skip to content
Snippets Groups Projects
fsvar.h 431 B
Newer Older
rtm's avatar
rtm committed
// in-core file system types

struct inode {
rsc's avatar
rsc committed
  uint dev;           // Device number
  uint inum;          // Inode number
  int ref;            // Reference count
  int busy;           // Is the inode "locked"?

  short type;         // copy of disk inode
kaashoek's avatar
kaashoek committed
  short major;
  short minor;
rtm's avatar
rtm committed
  short nlink;
  uint size;
rtm's avatar
rtm committed
  uint addrs[NADDRS];
rtm's avatar
rtm committed
};
rtm's avatar
rtm committed

extern uint rootdev;

#define NAMEI_LOOKUP 1
#define NAMEI_CREATE 2
#define NAMEI_DELETE 3