diff options
author | Frans Kaashoek <[email protected]> | 2011-07-27 20:35:46 -0400 |
---|---|---|
committer | Frans Kaashoek <[email protected]> | 2011-07-27 20:35:46 -0400 |
commit | 13a96baefc0ff5d8262c4bc8c797bee4b157443c (patch) | |
tree | a84aa8ed35618f99c3d7e8cdd466d22ae7bad597 /defs.h | |
parent | 97657d703f7a92a088b400980c17249f34640a5e (diff) | |
download | xv6-labs-13a96baefc0ff5d8262c4bc8c797bee4b157443c.tar.gz xv6-labs-13a96baefc0ff5d8262c4bc8c797bee4b157443c.tar.bz2 xv6-labs-13a96baefc0ff5d8262c4bc8c797bee4b157443c.zip |
Dirt simple logging
Passes usertests and stressfs
Seems to recover correctly in a number of simple cases
Diffstat (limited to 'defs.h')
-rw-r--r-- | defs.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -6,6 +6,7 @@ struct pipe; struct proc; struct spinlock; struct stat; +struct superblock; // bio.c void binit(void); @@ -32,6 +33,7 @@ int filestat(struct file*, struct stat*); int filewrite(struct file*, char*, int n); // fs.c +void readsb(int dev, struct superblock *sb); int dirlink(struct inode*, char*, uint); struct inode* dirlookup(struct inode*, char*, uint*); struct inode* ialloc(uint, short); @@ -75,6 +77,12 @@ void lapicinit(int); void lapicstartap(uchar, uint); void microdelay(int); +// log.c +void initlog(void); +void log_write(struct buf*); +void begin_trans(); +void commit_trans(); + // mp.c extern int ismp; int mpbcpu(void); |