summaryrefslogtreecommitdiff
path: root/fs.h
diff options
context:
space:
mode:
authorRobert Morris <[email protected]>2011-10-11 06:41:37 -0400
committerRobert Morris <[email protected]>2011-10-11 06:41:37 -0400
commita5fbfe418abd9bdb876407a73b479cdc39046e9a (patch)
tree9686a62d46f03753dfdcf8564053921a6ead031a /fs.h
parentd73dd097a529bc9d13f514ae6884c4d96a0fffa8 (diff)
downloadxv6-labs-a5fbfe418abd9bdb876407a73b479cdc39046e9a.tar.gz
xv6-labs-a5fbfe418abd9bdb876407a73b479cdc39046e9a.tar.bz2
xv6-labs-a5fbfe418abd9bdb876407a73b479cdc39046e9a.zip
clarify some FS comments
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