summaryrefslogtreecommitdiff
path: root/buf.h
AgeCommit message (Collapse)AuthorFilesLines
2019-06-11separate source into kernel/ user/ mkfs/Robert Morris1-14/+0
2016-09-11Move retry loop/sleep/wakeup in bio.c into sleeping locksFrans Kaashoek1-0/+1
2016-09-11Straight replacement of B_BUSY with a sleeping lock.Frans Kaashoek1-1/+1
2015-04-03Disentangle block size from the disk's sector size. Set block size to 1024 ↵Frans Kaashoek1-2/+2
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 Kaashoek1-4/+3
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-3/+4
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.rsc1-4/+4
Rename B_WRITE to B_DIRTY and then let ide.c maintain the B_VALID and B_DIRTY flags.
2007-08-24simplify ide queuingrtm1-1/+4
nits in comments
2006-09-08some comment changeskaashoek1-2/+2
2006-08-12LRU disk cache replacementrtm1-0/+2
2006-08-12buffer cache, fifo replacementrtm1-0/+1
2006-08-12fix getblk to actually lock the blockrtm1-0/+2
no more cons_put system calls usertests tests two processes writing files
2006-07-21breadrtm1-0/+5
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