summaryrefslogtreecommitdiff
path: root/sbin/newfs
AgeCommit message (Collapse)Author
2001-11-05kill more registers;Mike Pechkin
millert@ ok
2001-07-07major -Wall cleanup, almost completeTheo de Raadt
2001-06-23join .%A entries; most by bk@rt.fmTheo de Raadt
2001-04-19Cleanup dirpref and synhronize superblock with freebsd.Grigoriy Orlov
From FreeBSD with little changes. art@ ok.
2001-04-14Forgot remove 'U' from optstring; millert@ ok. ;)Grigoriy Orlov
2001-04-13Fix overflow in superblock. From FreeBSD.Grigoriy Orlov
FreeBSD's log: > The ffs superblock includes a 128-byte region for use by temporary > in-core pointers to summary information. An array in this region > (fs_csp) could overflow on filesystems with a very large number of > cylinder groups (~16000 on i386 with 8k blocks). When this happens, > other fields in the superblock get corrupted, and fsck refuses to > check the filesystem. > > Solve this problem by replacing the fs_csp array in 'struct fs' > with a single pointer, and add padding to keep the length of the > 128-byte region fixed. Update the kernel and userland utilities > to use just this single pointer. > > With this change, the kernel no longer makes use of the superblock > fields 'fs_csshift' and 'fs_csmask'. Add a comment to newfs/mkfs.c > to indicate that these fields must be calculated for compatibility > with older kernels. art@ ok.
2001-04-05Fix:Grigoriy Orlov
- two overflow of static buffer by device name. - one overflow of dynamic buffer.
2001-04-04bye bye -U (soft updates).Grigoriy Orlov
2001-04-03mount_mfs should not take the -U flag sync mfs is async and you cannotTodd C. Miller
have both aync and soft updates (not that it makes sense to have soft updates on mfs anyway). Also sync the usage in mount_mfs mode to the man page.
2001-01-16_exit() in signal handlerTheo de Raadt
2000-09-22If a cylinder group won't fit inside of one block, adjust secpercylTodd C. Miller
and ntracks until it does, if possible. This allows one to newfs disks with funky (usually BIOS-generated) geometries without cranking the block size. This is really just a hack and a better solution would be to fake the geometries of zone-recorded disks since secpercyl is never accurate in that case anyway...
2000-04-30#ifdef vax -> #ifdef __vax__Brandon Creighton
2000-04-17Move some misplaced periods outside of the parentheses.Aaron Campbell
2000-03-29Xr repairTheo de Raadt
2000-03-28mkfs(8) died a long time agoTheo de Raadt
2000-03-21add missing break; found by Matt Patton <mep@netsec.net>.Jason Wright
2000-03-18Remove hard sentence breaks, and some other cleanup along the way.Aaron Campbell
1999-12-03Allow enabling soft updates (with -U) on a new filesystem.Artur Grabowski
Allow soft updates on mfs filesystems (even if it's stupid).
1999-09-29There is no diskpart(8); m4@umn.eduAaron Campbell
1999-08-17More <sys/file.h> vs. <fcntl.h> and open() flags fixes.Todd C. Miller
1999-06-04start to remove non-escaped trailing whitespace, it can confuse troff; pjanzen@Aaron Campbell
1999-05-23remove argument from .Os macros so value in /usr/share/tmac/mdoc/doc-commonAaron Campbell
is used instead; kwesterback@home.com
1999-04-10Add -q flag to newfs and use it in the installTodd C. Miller
1999-03-11fix more comma splices that involve misuse of conjunctive adverbsPaul Janzen
1998-12-15always give .Nm macros an argument in SYNOPSIS sections; krw@tcn.netAaron Campbell
1998-11-28kill redundant .Nm macro arguments; other misc fixesAaron Campbell
1998-11-11more `` '' -> .Dq sillyness; remove redundant .Pp macros; other misc fixesAaron Campbell
1998-09-23alphabetize SEE ALSO entries and order them numerically according to sectionAaron Campbell
1998-09-17sbin/ man page fixesAaron Campbell
1998-08-30man page fixes; aaron@ug.cs.dal.caTheo de Raadt
1998-06-15use Bx macro for BSD versionsMichael Shalayeff
1997-11-17Work around a stackframe bug in gcc alpha, who cannot deal with frames > 64kNiklas Hallqvist
1997-09-26No longer allow the "newfs -flags /dev/rdev disk-type" form. It'sTodd C. Miller
no longer documented and disk type is settable via the -T flag. Also fix a problem kept newfs from building w/o COMPAT being defined.
1997-09-21$OpenBSD$Theo de Raadt
1997-07-25#if __STDC__ --> #ifdef __STDC__Michael Shalayeff
1997-06-16if -o is used to explicitly specify time or space optimization preference,Theo de Raadt
do not override based on minfree calculation; problem from jgarzik@pobox.com, my fix; PR#226
1997-06-03Make mkfs.c malloc its large buffers, which saves about 200K of bss sizegrr
when newfs is used in instbin and is otherwise harmless. Also add a little pro-forma malloc fail parnoia, though it's not really needed when the local malloc routine is used.
1997-06-03number of unallocated sectors message was based on modified fssize, make it ↵grr
deal with reality
1997-05-29mkfs() should not play with fssize; grr, PR#189Theo de Raadt
1997-03-27if lost+found generation code is enabled, create it with a nice modeTheo de Raadt
1997-02-23Inline fsirand(8) (at no noticable cost in speed).Todd C. Miller
1997-02-22progname -> __progname and exec fsirand after mkfs().Todd C. Miller
1997-02-21Don't expose private copies of malloc(), calloc(), free(). Ewwww.Todd C. Miller
1997-02-11Remove occurences of headswitch and trackseek, they no longerTodd C. Miller
exist in struct fs.
1997-01-16Correct logic such that newfs w/o -t on a device w/o a labelTodd C. Miller
defaults to ffs like people expect.
1997-01-15getopt(3) returns -1 when out of args, not EOF, whee!Todd C. Miller
1996-12-23readlabelfs()Jason Downs
1996-12-04rearrange argv[0] codeTheo de Raadt
1996-12-04fix usageTheo de Raadt
1996-12-04first cut at "newfs -t fstype device". this is very neatTheo de Raadt