Go to the source code of this file.
Data Structures | |
| struct | superblock |
| struct | dinode |
| struct | dirent |
Defines | |
| #define | ROOTINO 1 |
| #define | BSIZE 512 |
| #define | NDIRECT 12 |
| #define | NINDIRECT (BSIZE / sizeof(uint)) |
| #define | MAXFILE (NDIRECT + NINDIRECT) |
| #define | IPB (BSIZE / sizeof(struct dinode)) |
| #define | IBLOCK(i) ((i) / IPB + 2) |
| #define | BPB (BSIZE*8) |
| #define | BBLOCK(b, ninodes) (b/BPB + (ninodes)/IPB + 3) |
| #define | DIRSIZ 14 |
| #define BSIZE 512 |
| #define DIRSIZ 14 |
Definition at line 45 of file fs.h.
Referenced by create(), dirlink(), fmtname(), ls(), main(), namecmp(), namei(), skipelem(), sys_link(), and sys_unlink().
| #define IBLOCK | ( | i | ) | ((i) / IPB + 2) |
| #define IPB (BSIZE / sizeof(struct dinode)) |
| #define MAXFILE (NDIRECT + NINDIRECT) |
| #define NDIRECT 12 |
| #define NINDIRECT (BSIZE / sizeof(uint)) |
1.5.6