summaryrefslogtreecommitdiff
path: root/log.c
AgeCommit message (Collapse)AuthorFilesLines
2011-09-01Fix layout issues for printed versionFrans Kaashoek1-10/+9
2011-08-29Revert "Introduce and use sleeplocks instead of BUSY flags"Frans Kaashoek1-5/+9
My changes have a race with re-used bufs and the code doesn't seem to get shorter Keep the changes that fixed ip->off race This reverts commit 3a5fa7ed9020eaf8ab843a16d26db7393b2ec072. Conflicts: defs.h file.c file.h
2011-08-26Introduce and use sleeplocks instead of BUSY flagsFrans Kaashoek1-9/+5
Remove I_BUSY, B_BUSY, and intrans defs and usages One spinlock per buf to avoid ugly loop in bget fix race in filewrite (don't update f->off after releasing lock)
2011-08-15Only commit log to disk if something was written in to it.Austin Clements1-5/+7
Without this, every write to the console results in log writes.
2011-08-15avoid deadlock by calling begin_trans() before locking any inodesRobert Morris1-2/+2
2011-08-12log write() dataRobert Morris1-32/+56
usertest for big write()s push begin_trans/commit_trans down into syscalls
2011-07-27Dirt simple loggingFrans Kaashoek1-0/+164
Passes usertests and stressfs Seems to recover correctly in a number of simple cases