summaryrefslogtreecommitdiff
path: root/bio.c
AgeCommit message (Collapse)Author
2019-06-11separate source into kernel/ user/ mkfs/Robert Morris
2019-05-31-initrd fs.img, ramdisk.c, file systemRobert Morris
2017-08-09nothing muchRobert Morris
2017-08-09comment fixesRobert Morris
2016-09-15Remove left-over print statementsFrans Kaashoek
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
2016-08-25Remove trailing white space with:Frans Kaashoek
for f in *.{h,c}; do sed -i .sed 's/[[:blank:]]*$//' $f; done (Thanks to Nicolás Wolovick)
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.
2014-08-29Nice layout for a printout of the codeFrans Kaashoek
2014-08-28Merge branch 'master' of git+ssh://amsterdam.csail.mit.edu/home/am0/6.828/xv6Robert Morris
2014-08-28i think this is a working concurrent logging schemeRobert Morris
2014-08-27commentsRobert Morris
2011-10-14don't let dirty blocks be evicted from cache!Robert Morris
2011-10-11clarify some FS commentsRobert Morris
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)
2010-07-23a few nitsFrans Kaashoek
passes all tests on two-processor smp
2009-12-018ae0 instead of 8e00, thanks yandongFrans Kaashoek
2009-05-31group locks into structs they protect.rsc
few naming nits.
2009-05-31bio.c: use struct like icache doesrsc
2009-05-31slight rearrangement; sleep on b not buf.rsc
2009-03-08be consistent: no underscores in function namesrsc
2007-08-28formattingrsc
2007-08-27delete unnecessary #include linesrsc
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-24nitsrsc
2007-08-24nitsrsc
2007-08-24simplify ide queuingrtm
nits in comments
2007-08-22PDF at http://am.lcs.mit.edu/~rsc/xv6.pdfrsc
Various changes made while offline. + bwrite sector argument is redundant; use b->sector. + reformatting of files for nicer PDF page breaks + distinguish between locked, unlocked inodes in type signatures + change FD_FILE to FD_INODE + move userinit (nee proc0init) to proc.c + move ROOTDEV to param.h + always parenthesize sizeof argument
2007-08-14cleanup looprsc
2007-08-08refactor bget to be more like iget - make it clear that sleep loopsrsc
2006-09-07debugging helprsc
2006-09-07fix ide, pit interfacesrsc
2006-09-07fix build bugrsc
2006-09-07commentsrsc
2006-09-06wrap long linesrsc
2006-09-06for vs whilersc
2006-09-06standardize various * conventionsrsc
2006-08-30complain if no disk 1rtm
lots of cleanup
2006-08-12zero out all of dirent.name when creatingrtm
don't increase length of directory
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-08-10interrupts could be recursive since lapic_eoi() called before rtirtm
so fast interrupts overflow the kernel stack fix: cli() before lapic_eoi()
2006-08-07bwritekaashoek
2006-08-06generalize async read to support write tookaashoek
2006-08-04better interrupt plan---this one appears to workkaashoek
ioapic
2006-07-29open()rtm
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