summaryrefslogtreecommitdiff
path: root/bio.c
AgeCommit message (Collapse)AuthorFilesLines
2019-06-11separate source into kernel/ user/ mkfs/Robert Morris1-145/+0
2019-05-31-initrd fs.img, ramdisk.c, file systemRobert Morris1-3/+4
2017-08-09nothing muchRobert Morris1-1/+1
2017-08-09comment fixesRobert Morris1-3/+3
2016-09-15Remove left-over print statementsFrans Kaashoek1-6/+0
2016-09-11Move retry loop/sleep/wakeup in bio.c into sleeping locksFrans Kaashoek1-27/+29
2016-09-11Straight replacement of B_BUSY with a sleeping lock.Frans Kaashoek1-17/+20
2016-08-25Remove trailing white space with:Frans Kaashoek1-3/+3
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 Kaashoek1-9/+11
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 Kaashoek1-0/+2
2014-08-28Merge branch 'master' of git+ssh://amsterdam.csail.mit.edu/home/am0/6.828/xv6Robert Morris1-0/+2
2014-08-28i think this is a working concurrent logging schemeRobert Morris1-0/+2
2014-08-27commentsRobert Morris1-1/+1
2011-10-14don't let dirty blocks be evicted from cache!Robert Morris1-2/+2
2011-10-11clarify some FS commentsRobert Morris1-8/+8
2011-08-29Revert "Introduce and use sleeplocks instead of BUSY flags"Frans Kaashoek1-23/+22
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-22/+23
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 Kaashoek1-1/+0
passes all tests on two-processor smp
2009-12-018ae0 instead of 8e00, thanks yandongFrans Kaashoek1-0/+1
2009-05-31group locks into structs they protect.rsc1-1/+1
few naming nits.
2009-05-31bio.c: use struct like icache doesrsc1-30/+31
2009-05-31slight rearrangement; sleep on b not buf.rsc1-8/+8
2009-03-08be consistent: no underscores in function namesrsc1-2/+2
2007-08-28formattingrsc1-0/+1
2007-08-27delete unnecessary #include linesrsc1-4/+1
2007-08-27Another attempt at the bio.c comment.rsc1-29/+21
Rename B_WRITE to B_DIRTY and then let ide.c maintain the B_VALID and B_DIRTY flags.
2007-08-24nitsrsc1-4/+2
2007-08-24nitsrsc1-1/+1
2007-08-24simplify ide queuingrtm1-9/+10
nits in comments
2007-08-22PDF at http://am.lcs.mit.edu/~rsc/xv6.pdfrsc1-3/+2
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 looprsc1-12/+10
2007-08-08refactor bget to be more like iget - make it clear that sleep loopsrsc1-27/+28
2006-09-07debugging helprsc1-0/+1
2006-09-07fix ide, pit interfacesrsc1-14/+5
2006-09-07fix build bugrsc1-1/+1
2006-09-07commentsrsc1-4/+37
2006-09-06wrap long linesrsc1-1/+2
2006-09-06for vs whilersc1-1/+1
2006-09-06standardize various * conventionsrsc1-5/+5
2006-08-30complain if no disk 1rtm1-2/+1
lots of cleanup
2006-08-12zero out all of dirent.name when creatingrtm1-2/+2
don't increase length of directory
2006-08-12LRU disk cache replacementrtm1-9/+28
2006-08-12buffer cache, fifo replacementrtm1-4/+19
2006-08-12fix getblk to actually lock the blockrtm1-12/+19
no more cons_put system calls usertests tests two processes writing files
2006-08-10interrupts could be recursive since lapic_eoi() called before rtirtm1-1/+7
so fast interrupts overflow the kernel stack fix: cli() before lapic_eoi()
2006-08-07bwritekaashoek1-0/+13
2006-08-06generalize async read to support write tookaashoek1-2/+2
2006-08-04better interrupt plan---this one appears to workkaashoek1-1/+1
ioapic
2006-07-29open()rtm1-1/+1
2006-07-21breadrtm1-0/+66
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