summaryrefslogtreecommitdiff
path: root/sbin/newfs/newfs.c
AgeCommit message (Collapse)Author
2006-03-09Remove option -n from newfs as well as all references to fs_postbl()Pedro Martelletto
Various testing for a while, okay krw@
2005-10-28Make it possible to use -P on readonly memory filesystems. FromOtto Moerbeek
Alexander Hall, with some guidance by me. ok deraadt@
2004-08-12Prevent core dump on large block sizes by checking block size againstOtto Moerbeek
MAXBSIZE. ok millert@
2004-07-02Take TMPDIR into account when creating a temp mountpoint for populating.Otto Moerbeek
ok avsm@ millert@; man page ok jmc@
2004-06-26For all the mfs lovers:Otto Moerbeek
- Make the root of an mfs file system inherit the permission and owner/group of the mountpoint. Work by david@. - Add the ability to populate an mfs file system with the contents of a directory or a file system immediately after creation, controlled by the new -P mount option. Discussed with and tested by many, ok djm@ david@
2003-11-03NULL for NULL pointers, not 0Ted Unangst
2003-11-03combine ugly printf(), exit() combo statements into err() or errx().Ted Unangst
mostly from tom cosgrove.
2003-10-07better guess for ncyls. allows chuck yerkes to make small file systems again.Ted Unangst
2003-07-16remove default limit of 16 cylinders per group. it's now set toTed Unangst
as many as fit with the other parameters given. change default frag size to 2048, bumping block size to 16k. from freebsd. ok deraadt@ and co.
2003-07-02missing protosTheo de Raadt
2003-06-25proto repairsTheo de Raadt
2003-06-11ansificationTheo de Raadt
2003-06-10boring cleanupsTheo de Raadt
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-05-03The 'memleft' calcuations assume that the data address starts atTodd C. Miller
0, which is no longer the case. So instead of the hokey private malloc() implementation, just use mmap. From diffs I ran on anoncvs.usa 4 years ago.
2003-04-16fix race between mount(2) and exit(2) for mount_mfs.Markus Friedl
from netbsd (drochner, newfs.c 1.30, mkfs.c 1.29, no copyright changes) ok tedu@
2003-03-13lots of sprintf -> snprintf and strcpy -> strlcpy; checked by teduTheo de Raadt
2002-05-26pid_t cleanupTheo de Raadt
2002-05-06Use the default calculation of maxcontig, based on fs_bsize and MAXPHYS, soTodd C. Miller
that the cluster summary information is correct for bsize=4k and MAXPHYS=64k. From NetBSD (mycroft)
2002-04-23In mount.h, rename field export -> export_info, to avoid collision with C++.Marc Espie
Synch files that use that field. (This argument is an internal interface specific to OpenBSD, so it won't cause compatibility problems.) (No bump, not an ABI change). ok art, millert...
2002-02-19We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.Todd C. Miller
2002-02-18Don't accept -N flag for mount_mfs. This flag is turned on automaticallyTodd C. Miller
when invoked as mount_mfs but it has different semantics from what is described in the man page.
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
2001-11-05kill more registers;Mike Pechkin
millert@ ok
2001-07-07major -Wall cleanup, almost completeTheo 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-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.
2000-04-30#ifdef vax -> #ifdef __vax__Brandon Creighton
2000-03-21add missing break; found by Matt Patton <mep@netsec.net>.Jason Wright
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-08-17More <sys/file.h> vs. <fcntl.h> and open() flags fixes.Todd C. Miller
1999-04-10Add -q flag to newfs and use it in the installTodd C. Miller
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-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-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-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
1996-11-24Add MOPT_UPDATE to mount options since there is filesystemTodd C. Miller
support for it. From NetBSD (cgd).
1996-10-27newfs for disks other than 512bytes/sector, NetBSD pr#2404,Jason Downs
<yasufu-i@is.aist-nara.ac.jp>.
1996-06-23update rcsidTheo de Raadt