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))
+#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
};