summaryrefslogtreecommitdiff
path: root/defs.h
diff options
context:
space:
mode:
authorFrans Kaashoek <[email protected]>2015-06-27 12:39:13 -0400
committerFrans Kaashoek <[email protected]>2015-06-27 12:39:13 -0400
commit8320d61be5613fb2875be859695752b1487fda20 (patch)
treef0a800145225ffcd97f805be47e5b41764504898 /defs.h
parentde4af193c87b3a7fa8762ccaeb81a6addf168799 (diff)
downloadxv6-labs-8320d61be5613fb2875be859695752b1487fda20.tar.gz
xv6-labs-8320d61be5613fb2875be859695752b1487fda20.tar.bz2
xv6-labs-8320d61be5613fb2875be859695752b1487fda20.zip
Pick up where i left off in april:
- move log into metadata part of disk, so that marking that the log's blocks are in use falls out for free - superblock describes the whole disk (sizes and offets) - sizes and offsets are computed in one place (mkfs) and the rest of the code refers to the superblock for these values, instead of recomputing them.
Diffstat (limited to 'defs.h')
-rw-r--r--defs.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/defs.h b/defs.h
index 43431e3..b47372b 100644
--- a/defs.h
+++ b/defs.h
@@ -39,7 +39,7 @@ int dirlink(struct inode*, char*, uint);
struct inode* dirlookup(struct inode*, char*, uint*);
struct inode* ialloc(uint, short);
struct inode* idup(struct inode*);
-void iinit(void);
+void iinit(int dev);
void ilock(struct inode*);
void iput(struct inode*);
void iunlock(struct inode*);
@@ -81,7 +81,7 @@ void lapicstartap(uchar, uint);
void microdelay(int);
// log.c
-void initlog(void);
+void initlog(int dev);
void log_write(struct buf*);
void begin_op();
void end_op();