summaryrefslogtreecommitdiff
path: root/mkfs.c
AgeCommit message (Collapse)Author
2019-06-11separate source into kernel/ user/ mkfs/Robert Morris
2019-06-04support read() and write() bigger than one pageRobert Morris
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-08-12Fixed broken build on Arch LinuxAyan Shafqat
2015-06-27Pick up where i left off in april:Frans Kaashoek
- 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-10check blockno passed to idestartFrans 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.
2014-08-28i think this is a working concurrent logging schemeRobert Morris
2012-09-10Use static assert instead of _LP64 (thanks Eddie!)Frans Kaashoek
2012-09-07Remove -m32 flag from native gcc compilerFrans Kaashoek
But check that mkfs.c is building with LP64
2011-07-27Dirt simple loggingFrans Kaashoek
Passes usertests and stressfs Seems to recover correctly in a number of simple cases
2011-02-28fixes from Peter FroehlichRuss Cox
2011-01-11make new code like old codeRuss Cox
Variable declarations at top of function, separate from initialization. Use == 0 instead of ! for checking pointers. Consistent spacing around {, *, casts. Declare 0-parameter functions as (void) not (). Integer valued functions return -1 on failure, 0 on success.
2011-01-10mkfs: avoid clash with system struct statRuss Cox
2011-01-02mkfs: avoid out of bounds access to sb in wsectRuss Cox
2010-08-31Hopefully get the printf size spec right, regardless of compiler.Austin Clements
2010-08-31no more pminit, or ELF header at 0x10000Robert Morris
kinit() knows about end and PHYSTOP map all of kernel read/write (rather than r/o instructions) thanks, austin
2010-08-31mkfs must be compiled 32-bit. Fix mkfs warningsAustin Clements
2009-05-31drop NADDRS and INDIRECT; too many namesrsc
2009-05-31move T_DIR etc into stat.h; move type uprsc
2008-10-08be clear what the root i-number isrtm
2007-09-15fix commentsrtm
2007-08-27delete unnecessary #include linesrsc
2007-08-24add missing iput() at end of _namei()rtm
2006-09-08quietrsc
2006-09-07avoid system binary clashesrsc
2006-09-06standardize various * conventionsrsc
2006-09-06spacing fixes: no tabs, 2-space indents (for rtm)rsc
2006-08-25fix writing the indirect blockrtm
2006-08-24user-level malloc (untested)kaashoek
nit in sbrk indirect block fix dup to share fd struct
2006-08-14set size for directories correctly in wdir and mkfskaashoek
mkdir ls shows stat info for each dir entry
2006-08-10low-level keyboard input (not hooked up to /dev yet)rtm
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-09block bitmapkaashoek
balloc
2006-07-28exec argumentsrtm
2006-07-27primitive execrtm
2006-07-21nameirtm
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