diff options
Diffstat (limited to 'fs.h')
-rw-r--r-- | fs.h | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -15,11 +15,9 @@ struct superblock { uint ninodes; // Number of inodes. }; -#define NADDRS (NDIRECT+1) #define NDIRECT 12 -#define INDIRECT 12 #define NINDIRECT (BSIZE / sizeof(uint)) -#define MAXFILE (NDIRECT + NINDIRECT) +#define MAXFILE (NDIRECT + NINDIRECT) // On-disk inode structure struct dinode { @@ -28,7 +26,7 @@ struct dinode { short minor; // Minor device number (T_DEV only) short nlink; // Number of links to inode in file system uint size; // Size of file (bytes) - uint addrs[NADDRS]; // Data block addresses + uint addrs[NDIRECT+1]; // Data block addresses }; // Inodes per block. |