xv6fs.inc | |
xv6 Filesystem | |
Constants | |
XV6FS_BSIZE | xv6 Filesystem block size (1024) |
XV6FS_ROOTINO | root inode number |
XV6FS_MAGIC | Superblock magic number, MUST BE `0x10203040` |
XV6FS_NDIRECT | Number of direct block (12) |
Structs | |
Xv6FS_Sb | xv6FS superblock |
Xv6FS_Inode | xv6FS on disk i-node |
Xv6FS_Dirent | xv6FS directory entry |
Implementation |
┌──────────┬───────────┬───┬───┬───┬──────┬───┬──────┬──────┬───┬──────┬────┬───┬────┐ │Boot block│Super block│Log│...│Log│Inodes│...│Inodes│Bitmap│...│Bitmap│Data│...│Data│ └──────────┴───────────┴───┴───┴───┴──────┴───┴──────┴──────┴───┴──────┴────┴───┴────┘
Constants | |
XV6FS_BSIZE | xv6 Filesystem block size (1024) |
XV6FS_ROOTINO | root inode number |
XV6FS_MAGIC | Superblock magic number, MUST BE `0x10203040` |
XV6FS_NDIRECT | Number of direct block (12) |
Structs | |
Xv6FS_Sb | xv6FS superblock |
Xv6FS_Inode | xv6FS on disk i-node |
Xv6FS_Dirent | xv6FS directory entry |
xv6FS superblock
.magic | See XV6FS_MAGIC |
.size | TODO |
.nblock | TODO |
.ninodes | TODO |
.nlog | TODO |
.nlogstart | TODO |
.inodestart | TODO |
.bmapstart | TODO |