From f32f3638f4c34fbf2fc4398878e6304612bb3283 Mon Sep 17 00:00:00 2001 From: rsc Date: Tue, 21 Aug 2007 19:22:08 +0000 Subject: Various cleanup: - Got rid of dummy proc[0]. Now proc[0] is init. - Added initcode.S to exec /init, so that /init is just a regular binary. - Moved exec out of sysfile to exec.c - Moved code dealing with fs guts (like struct inode) from sysfile.c to fs.c. Code dealing with system call arguments stays in sysfile.c - Refactored directory routines in fs.c; should be simpler. - Changed iget to return *unlocked* inode structure. This solves the lookup-then-use race in namei without introducing deadlocks. It also enabled getting rid of the dummy proc[0]. --- BUGS | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) (limited to 'BUGS') diff --git a/BUGS b/BUGS index ef4213f..1d2bd37 100644 --- a/BUGS +++ b/BUGS @@ -11,14 +11,15 @@ proc.c: factor out switching and scheduling code from process code -kalloc.c - more cleanups + shuffle for formatting -ide.c: synchronous disk write -> polling disk write. search for - (a)synchronous; xv6 doesn't have asynchronous writes. +syscall.c: + cannot convince runoff1 to split the extern lists to fill previous page completely. -fs.c: split all name operations off in name.c? (starting with namei but move +fs.c: split all name operations off in name.c? (starting with namei but wdir keep in fs.c) + locking? + shuffle for formatting pipe.c: more comments? @@ -31,6 +32,19 @@ sysfile.c: general: sizeof parens? +bio.c: + decide odd or even + bwrite doesn't need a second argument + +file.c: + move fileincref onto page 1? + L=$HOME/mit/l (for i in *.c; do xoc -x xgnu -x ./nodecleq.zeta --typesonly $i; done) 2>&1 | grep warning +saw random sharedfd failure. + +why does fdalloc consume reference? + +why mkdir and create? + -- cgit v1.2.3