summaryrefslogtreecommitdiff
path: root/log.c
AgeCommit message (Collapse)AuthorFilesLines
2019-06-11separate source into kernel/ user/ mkfs/Robert Morris1-235/+0
2019-05-31-initrd fs.img, ramdisk.c, file systemRobert Morris1-0/+1
2017-08-09nothing muchRobert Morris1-1/+3
2016-09-11Straight replacement of B_BUSY with a sleeping lock.Frans Kaashoek1-0/+1
2016-08-25Remove trailing white space with:Frans Kaashoek1-7/+7
for f in *.{h,c}; do sed -i .sed 's/[[:blank:]]*$//' $f; done (Thanks to Nicolás Wolovick)
2015-06-27Pick up where i left off in april:Frans Kaashoek1-4/+4
- 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.
2015-04-03Disentangle block size from the disk's sector size. Set block size to 1024 ↵Frans Kaashoek1-9/+9
to show that they can be different. Clean up mkfs, simplifying specifying fs parameters, remove some redundancy between fs and mkfs, and fix disk layout bugs. Call blocks in the file system blocks instead of sectors. Passes usertests for different block sizes.
2015-02-19fix buf where concurrent fs syscalls race on log entriesCody Cutler1-0/+2
2014-08-29Nice layout for a printout of the codeFrans Kaashoek1-3/+0
2014-08-28write log blocks from cache only at end of transactionRobert Morris1-7/+21
2014-08-28nitsRobert Morris1-24/+10
2014-08-28i think this is a working concurrent logging schemeRobert Morris1-2/+19
2014-08-27a start at concurrent FS system callsRobert Morris1-24/+58
2014-08-04every iput() and namei() must be inside a transactionRobert Morris1-5/+1
2011-10-14don't let dirty blocks be evicted from cache!Robert Morris1-0/+1
2011-10-11clarify some FS commentsRobert Morris1-10/+12
2011-09-02Add blank page to get our super FS spreads backAustin Clements1-0/+4
2011-09-02Remove comment debug prints from log.c; now fits nicely in a spreadAustin Clements1-9/+0
2011-09-02Define struct log separately from log to avoid confusing column breakerAustin Clements1-2/+3
2011-09-02Comment balanceAustin Clements1-2/+2
2011-09-02Remove unused headers from log.cAustin Clements1-3/+0
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