summaryrefslogtreecommitdiff
path: root/buf.h
AgeCommit message (Collapse)Author
2019-06-11separate source into kernel/ user/ mkfs/Robert Morris
2016-09-11Move retry loop/sleep/wakeup in bio.c into sleeping locksFrans Kaashoek
2016-09-11Straight replacement of B_BUSY with a sleeping lock.Frans Kaashoek
2015-04-03Disentangle block size from the disk's sector size. Set block size to 1024 ↵Frans Kaashoek
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.
2011-08-29Revert "Introduce and use sleeplocks instead of BUSY flags"Frans Kaashoek
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 Kaashoek
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)
2007-08-27Another attempt at the bio.c comment.rsc
Rename B_WRITE to B_DIRTY and then let ide.c maintain the B_VALID and B_DIRTY flags.
2007-08-24simplify ide queuingrtm
nits in comments
2006-09-08some comment changeskaashoek
2006-08-12LRU disk cache replacementrtm
2006-08-12buffer cache, fifo replacementrtm
2006-08-12fix getblk to actually lock the blockrtm
no more cons_put system calls usertests tests two processes writing files
2006-07-21breadrtm
iget mkfs makes a file system image put this in your .bochsrc: ata0-slave: type=disk, mode=flat, path="fs.img", cylinders=1024, heads=1, spt=1