UNIX xv6 (rev8, 9/1/15)
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Data Structures | Macros
fs.h File Reference

Go to the source code of this file.

Data Structures

struct  superblock
 
struct  dinode
 
struct  dirent
 

Macros

#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, sb)   ((i) / IPB + sb.inodestart)
 
#define BPB   (BSIZE*8)
 
#define BBLOCK(b, sb)   (b/BPB + sb.bmapstart)
 
#define DIRSIZ   14
 

Macro Definition Documentation

#define BBLOCK (   b,
  sb 
)    (b/BPB + sb.bmapstart)

Definition at line 47 of file fs.h.

#define BPB   (BSIZE*8)

Definition at line 44 of file fs.h.

#define BSIZE   512

Definition at line 6 of file fs.h.

#define DIRSIZ   14

Definition at line 50 of file fs.h.

#define IBLOCK (   i,
  sb 
)    ((i) / IPB + sb.inodestart)

Definition at line 41 of file fs.h.

#define IPB   (BSIZE / sizeof(struct dinode))

Definition at line 38 of file fs.h.

#define MAXFILE   (NDIRECT + NINDIRECT)

Definition at line 25 of file fs.h.

#define NDIRECT   12

Definition at line 23 of file fs.h.

#define NINDIRECT   (BSIZE / sizeof(uint))

Definition at line 24 of file fs.h.

#define ROOTINO   1

Definition at line 5 of file fs.h.