summaryrefslogtreecommitdiff
path: root/sbin/newfs
AgeCommit message (Collapse)Author
2005-12-19Add and use a few more constants and macros needed by UFS2Pedro Martelletto
No functional change
2005-10-28Make it possible to use -P on readonly memory filesystems. FromOtto Moerbeek
Alexander Hall, with some guidance by me. ok deraadt@
2005-08-08More informative error message when trying to create a filesystemOtto Moerbeek
larger than 1TB. ok deraadt@
2005-06-27grammar;Jason McIntyre
2005-06-27- sort synopsis and options listJason McIntyre
- sync the args in the options list to those in synopsis, and avoid using structures such as `-l very long description of single arg'
2005-04-14handle snprintf out of range conditions; otto okTheo de Raadt
2005-01-06validate mfs size to avoid wrapping. ok miod@Otto Moerbeek
2004-11-281 inode per 8192 bytes nowTed Unangst
2004-10-14Do not generate either a too large super block or a negative numberOtto Moerbeek
of inodes per cylinder group for large block or fragment sizes. This allows for creation of filesystems with any legal block/fragment size combination. ok tedu@.
2004-09-10Bail out on errors when making very small filesystems. ok deraadt@Otto Moerbeek
2004-08-15escape some minus signs, and keep -Tps happy;Jason McIntyre
2004-08-15Document max file system size and warn user that using non-standardOtto Moerbeek
block or fragment sizes may hurt. ok a bunch of people@
2004-08-12Prevent core dump on large block sizes by checking block size againstOtto Moerbeek
MAXBSIZE. ok millert@
2004-07-28.Xr growfs 8Jason McIntyre
2004-07-06delint: offset arg to mmap is off_t and remove dead codeOtto Moerbeek
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@
2004-06-22acg.cg_nextfreeoff is already relative to &acg so don't subtractTodd C. Miller
&acg.cg_firstfield. Fixes a bogus "panic: cylinder group too big" I see sometimes when using mmap malloc. OK tholo@
2004-05-13provide a siginfo handler for -q run; idea from art's todo; millert@ okMichael Shalayeff
2004-01-13quiet warnings. better diff suggested by tom@ ok deraadt@Ted Unangst
2003-12-05madvise() the mfs storage area as randomly accessed as mfs does it's own ↵Michael Shalayeff
clustering; tedu@ ok
2003-11-06don't write magic until the file system is really done. preventsTed Unangst
fsck/mount unhappiness. hint from freebsd-arch ml. ok deraadt@
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-17mention some defaults; noticed by John L. ScarfoneJason McIntyre
ok tedu@
2003-10-07better guess for ncyls. allows chuck yerkes to make small file systems again.Ted Unangst
2003-08-25rename struct dinode to ufs1_dinode. clears the namespace and makesTed Unangst
way for some future work. no function changes yet. help testing otto@ and markus@
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-26rename -h files to -h avgfpdir in synopsis to match realityTed Unangst
2003-06-25proto repairsTheo de Raadt
2003-06-20use .Bk/.Ek to keep SYNOPSIS tidy;Jason McIntyre
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-06remove FSIRAND define and make it non-optional. ok millert@Ted Unangst
2003-05-06after switch to mmap, we need to zero other malloc'd data. use calloc.Ted Unangst
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
2003-03-11mention that avgfilesize is in bytes.Ted Unangst
2003-03-10filesystem -> file system for a little consistencyTed Unangst
ok jmc@ millert@
2003-03-10document dirpref options -g and -h (w/ avgfpdir)Ted Unangst
ok millert@
2003-02-19Use pread/pwrite where sensible; also remove some bogus casts inTodd C. Miller
printf to long and long long for things that are int32_t.
2003-02-07typos;Jason McIntyre
2002-06-09rm trailing whitespaceTodd T. Fries
2002-05-29more snprintfTheo de Raadt
2002-05-26pid_t cleanupTheo de Raadt
2002-05-06Correct info in "-a maxcontig" section.Todd C. Miller
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)