Skip to content
Snippets Groups Projects
Select Git revision
  • f68317533e8dc6cebd37b2d8c95d09ee666f90b0
  • master default protected
2 results

fsvar.h

Blame
  • user avatar
    rsc authored
    c1b100e9
    History
    fsvar.h 372 B
    // in-core file system types
    
    struct inode {
      uint dev;           // Device number
      uint inum;          // Inode number
      int ref;            // Reference count
      int flags;          // I_BUSY, I_VALID
    
      short type;         // copy of disk inode
      short major;
      short minor;
      short nlink;
      uint size;
      uint addrs[NADDRS];
    };
    
    #define I_BUSY 0x1
    #define I_VALID 0x2