summaryrefslogtreecommitdiff
path: root/mkfs.c
AgeCommit message (Collapse)AuthorFilesLines
2016-08-25Remove trailing white space with:Frans Kaashoek1-2/+2
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 Shafqat1-0/+2
2015-06-27Pick up where i left off in april:Frans Kaashoek1-13/+16
- 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 Kaashoek1-8/+5
2015-04-03Disentangle block size from the disk's sector size. Set block size to 1024 ↵Frans Kaashoek1-48/+45
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 Morris1-1/+1
2012-09-10Use static assert instead of _LP64 (thanks Eddie!)Frans Kaashoek1-3/+4
2012-09-07Remove -m32 flag from native gcc compilerFrans Kaashoek1-0/+4
But check that mkfs.c is building with LP64
2011-07-27Dirt simple loggingFrans Kaashoek1-5/+8
Passes usertests and stressfs Seems to recover correctly in a number of simple cases
2011-02-28fixes from Peter FroehlichRuss Cox1-1/+1
2011-01-11make new code like old codeRuss Cox1-12/+12
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 Cox1-0/+2
2011-01-02mkfs: avoid out of bounds access to sb in wsectRuss Cox1-1/+3
2010-08-31Hopefully get the printf size spec right, regardless of compiler.Austin Clements1-2/+2
2010-08-31no more pminit, or ELF header at 0x10000Robert Morris1-2/+2
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 Clements1-2/+2
2009-05-31drop NADDRS and INDIRECT; too many namesrsc1-4/+4
2009-05-31move T_DIR etc into stat.h; move type uprsc1-0/+1
2008-10-08be clear what the root i-number isrtm1-1/+1
2007-09-15fix commentsrtm1-2/+2
2007-08-27delete unnecessary #include linesrsc1-2/+1
2007-08-24add missing iput() at end of _namei()rtm1-2/+2
2006-09-08quietrsc1-2/+2
2006-09-07avoid system binary clashesrsc1-0/+8
2006-09-06standardize various * conventionsrsc1-18/+18
2006-09-06spacing fixes: no tabs, 2-space indents (for rtm)rsc1-10/+10
2006-08-25fix writing the indirect blockrtm1-1/+1
2006-08-24user-level malloc (untested)kaashoek1-6/+26
nit in sbrk indirect block fix dup to share fd struct
2006-08-14set size for directories correctly in wdir and mkfskaashoek1-1/+10
mkdir ls shows stat info for each dir entry
2006-08-10low-level keyboard input (not hooked up to /dev yet)rtm1-1/+1
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 bitmapkaashoek1-5/+37
balloc
2006-07-28exec argumentsrtm1-5/+0
2006-07-27primitive execrtm1-37/+113
2006-07-21nameirtm1-5/+11
2006-07-21breadrtm1-0/+140
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