summaryrefslogtreecommitdiff
path: root/fs.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs.h')
-rw-r--r--fs.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/fs.h b/fs.h
index a842e64..48a1c13 100644
--- a/fs.h
+++ b/fs.h
@@ -6,18 +6,22 @@ struct superblock{
int ninodes;
};
-#define NDIRECT 14
+#define NDIRECT 13
// inodes start at the third sector
// and blocks start at (ninodes * sizeof(dinode) + 511) / 512
struct dinode {
short type;
+ short major;
+ short minor;
short nlink;
uint size;
uint addrs[NDIRECT];
};
+
#define T_DIR 1
#define T_FILE 2
+#define T_DEV 3
#define IPB (512 / sizeof(struct dinode))