summaryrefslogtreecommitdiff
path: root/fs.h
AgeCommit message (Collapse)AuthorFilesLines
2016-08-25Remove trailing white space with:Frans Kaashoek1-1/+1
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-10/+11
- 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-10One ide command for nsector_per_block generates nsector_per_block interrupts,Frans Kaashoek1-1/+1
instead of 1. ideintr() should wait for nsector_per_block interrupts before waking up the reader; now it wakes up the reader after 1 interrupt, which apparently means that the first sector is available of the command instead of all. For now keep BSIZE to 512.
2015-04-03Disentangle block size from the disk's sector size. Set block size to 1024 ↵Frans Kaashoek1-1/+1
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-10-11clarify some FS commentsRobert Morris1-2/+6
2011-09-02Fit fs.h in one columnAustin Clements1-2/+1
2011-07-27Dirt simple loggingFrans Kaashoek1-0/+1
Passes usertests and stressfs Seems to recover correctly in a number of simple cases
2011-02-19xv6: formatting, cleanup, rev5 (take 2)Russ Cox1-1/+0
2009-05-31drop NADDRS and INDIRECT; too many namesrsc1-4/+2
2009-05-31move T_DIR etc into stat.h; move type uprsc1-4/+0
2008-10-08be clear what the root i-number isrtm1-0/+1
2007-08-24comment nitsrtm1-1/+1
2007-08-20shuffle fs.c in bottom-up orderrsc1-2/+0
2006-09-08tweak fs.h spacing; add commentrsc1-0/+2
2006-09-08fix various commentsrsc1-2/+2
2006-09-07more commentsrsc1-20/+33
2006-08-25inode addrs[NDIRECT] -> NADDRSrtm1-1/+1
fix race in mknod / creat use last component in dirent in mknod, not path
2006-08-24user-level malloc (untested)kaashoek1-2/+6
nit in sbrk indirect block fix dup to share fd struct
2006-08-15commented out code for cwdkaashoek1-0/+2
2006-08-10low-level keyboard input (not hooked up to /dev yet)rtm1-5/+0
fix acquire() to cli() *before* incrementing nlock make T_SYSCALL a trap gate, not an interrupt gate sadly, various crashes if you hold down a keyboard key...
2006-08-09iread for T_DEVkaashoek1-0/+4
O_RDWR, etc. create file
2006-08-09block bitmapkaashoek1-6/+11
balloc
2006-08-08mknod,ialloc,iupdatekaashoek1-1/+5
2006-07-21nameirtm1-1/+3
2006-07-21breadrtm1-0/+28
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