summaryrefslogtreecommitdiff
path: root/fs.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs.h')
-rw-r--r--fs.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/fs.h b/fs.h
index 85efa78..f191d43 100644
--- a/fs.h
+++ b/fs.h
@@ -1,8 +1,12 @@
// On-disk file system format.
// Both the kernel and user programs use this header file.
-// Block 0 is unused. Block 1 is super block.
-// Inodes start at block 2.
+// Block 0 is unused.
+// Block 1 is super block.
+// Blocks 2 through sb.ninodes/IPB hold inodes.
+// Then free bitmap blocks holding sb.size bits.
+// Then sb.nblocks data blocks.
+// Then sb.nlog log blocks.
#define ROOTINO 1 // root i-number
#define BSIZE 512 // block size