summaryrefslogtreecommitdiff
path: root/sbin/newfs/newfs.c
AgeCommit message (Expand)Author
2015-12-06Avoid out of boundary access on illegal command line arguments.Tobias Stoeckmann
2015-11-25We can't make a pledge if we're mount_mfs(8) as we need the ability to callMark Kettenis
2015-11-23Use pledge "disklabel" as needed. The theory here is these tools become moreTheo de Raadt
2015-11-10newfs does not need TMPDIR supportTheo de Raadt
2015-09-29Delete the final, inscrutable NOSTRICT and VARARGS lint commentsPhilip Guenther
2015-01-20Adjust <sys/param.h> comments regarding use of use of MAXFRAG, orTheo de Raadt
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
2014-07-20Make sure the correct errno is reported by warn* or err* and notPhilip Guenther
2014-07-20Mark fatal() as printf-like.Philip Guenther
2013-11-22Whole bunch of (unsigned char) casts carefully added for ctype calls.Theo de Raadt
2013-11-05Replace direct references to p_size, p_offset and d_secperunit withKenneth R Westerback
2013-10-07Oops. Too mechanical -- can't use DL_SECTOBLK() to set fssize, sinceKenneth R Westerback
2013-10-06daddr_t tweaks. %lld -> %llu, intermediate disk sector calculationKenneth R Westerback
2013-06-11final removal of daddr64_t. daddr_t has been 64 bit for a long enoughTheo de Raadt
2011-05-23Allow specifying k/m/g/... suffixes in newfs(8) -S and -s options.David Coppa
2011-04-26setrlimit only if mfs; ok millert@Otto Moerbeek
2010-12-13stray tabMarco Peereboom
2010-07-24mount -f doesn't help mfs, but it doesn't hurt, so stop warning about it.Ted Unangst
2010-07-02garbage collect an unused variableTheo de Raadt
2010-05-18dont let sys/ioctl.h imply that you get the ioctls in dkio.h. thisDavid Gwynne
2010-05-03Switch newfs to opendev(3) - this simplies the code and will allow it toJoel Sing
2010-04-23Recycle unused disklabel fields in order to create a disklabel uniqueJoel Sing
2010-03-20Make FFS2 the default format for file systems larger than INT_MAXKenneth R Westerback
2008-08-08Admit b_blkno means block number; a block is DEV_BSIZE (a.k.a.Kenneth R Westerback
2008-08-04refuse to run on block devices; prompted by marco; ok marco@ millert@Otto Moerbeek
2008-07-06Don't change the size of the partition being newfs'd when sectorsize,Kenneth R Westerback
2008-06-27documentation tweak.Igor Sobrado
2008-06-24- move -S and -t into the main option descriptions: they were the onlyJason McIntyre
2008-06-04warnx already prepends string with a colon, no need to manually add oneTobias Stoeckmann
2008-01-29More read/write result checking fixes to avoid unsigned comparisons vsKenneth R Westerback
2008-01-15s/fragements/fragments/ in usage().Stuart Henderson
2007-11-26revised diff that handles the no mfs parts correctlyTed Unangst
2007-11-25when running as newfs, there is no argv[1].. backout previousTheo de Raadt
2007-11-25Iruata Souza sent a diff that fixes weird occurences when mounting withTed Unangst
2007-11-05forgotten arg to printf, Tobias UlmerOtto Moerbeek
2007-06-26Enable creation of larger than 1TB FFS2 filesystems. Note that thisOtto Moerbeek
2007-06-10remove last instances of daddr_t; ok thib@Otto Moerbeek
2007-06-01ufs1_daddr_t cleanup, okay otto@Pedro Martelletto
2007-06-01convert ufs2_daddr_t -> daddr64_t for greater clarity; ok pedro otto thibTheo de Raadt
2007-05-29Updated disklabel format to support larger disks and partitions. WeOtto Moerbeek
2007-05-20Update usage wrt -c option when called as mount_mfs.Todd C. Miller
2007-05-19Now that the amd64 floppy and cd image -c setting have been fixed,Otto Moerbeek
2007-05-19backout -c changes; they were not tested on all the media. all newfsTheo de Raadt
2007-05-18The unit of the -c options is fragments, so adjust man page andOtto Moerbeek
2007-05-15Make usage declaration match prototype; Make it __dead also.Thordur I. Bjornsson
2007-04-13Missing bit in last commit, remove -z for getopt string.Todd C. Miller
2007-04-13cut the verbosity from usage() and instead print a synopsis,Jason McIntyre
2007-04-13Add support for creating ffs2 filesystems. Note that the conceptTodd C. Miller
2007-04-03Use strtonum(), not atoi(). OK deraadt, with help from otto@Todd C. Miller
2007-04-03Remove obsolete options for superblock fields that are no longer used.Todd C. Miller