diff options
| -rw-r--r-- | fs.h | 4 | ||||
| -rw-r--r-- | mkfs.c | 1 | ||||
| -rw-r--r-- | stat.h | 6 | 
3 files changed, 6 insertions, 5 deletions
@@ -31,10 +31,6 @@ struct dinode {    uint addrs[NADDRS];   // Data block addresses  }; -#define T_DIR  1   // Directory -#define T_FILE 2   // File -#define T_DEV  3   // Special device -  // Inodes per block.  #define IPB           (BSIZE / sizeof(struct dinode)) @@ -6,6 +6,7 @@  #include <assert.h>  #include "types.h"  #include "fs.h" +#include "stat.h"  int nblocks = 995;  int ninodes = 200; @@ -1,7 +1,11 @@ +#define T_DIR  1   // Directory +#define T_FILE 2   // File +#define T_DEV  3   // Special device +  struct stat { +  short type;  // Type of file    int dev;     // Device number    uint ino;    // Inode number on device -  short type;  // Type of file    short nlink; // Number of links to file    uint size;   // Size of file in bytes  };  | 
