summaryrefslogtreecommitdiff
path: root/sbin/newfs/mkfs.c
AgeCommit message (Expand)Author
2020-06-20With filesystem having many cylinder groups and many inodes per cg theOtto Moerbeek
2020-05-28Make generation numbers unsigned and fill them using a random numberOtto Moerbeek
2020-05-19Copy ownership/permissions from the mountpoint to FFS2 MFS, as already doneStuart Henderson
2019-07-03snprintf/vsnprintf return < 0 on error, rather than -1.Theo de Raadt
2016-09-01Start writing the size of the cylinder group into the (unused) cpgOtto Moerbeek
2016-03-17Switch (non-curses, non-ksh) programs that use COLUMNS to a single idiom.Anthony J. Bentley
2016-01-28malloc(3) returns a pointer, so check against NULL, not 0. (No functional cha...Gleydson Soares
2015-11-23Use pledge "disklabel" as needed. The theory here is these tools become moreTheo de Raadt
2015-10-11Prefer dprintf() over snprintf()+write()Philip Guenther
2015-08-20<stdlib.h> is included, so do not need to cast result fromTheo de Raadt
2015-04-18Convert many atoi() calls to strtonum(), adding range checks and failureTheo de Raadt
2015-02-06Better size_t overflow check for mount_mfs. OK miod@Todd C. Miller
2015-01-20Adjust <sys/param.h> comments regarding use of use of MAXFRAG, orTheo de Raadt
2015-01-18do not require <a.out.h>Theo de Raadt
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
2014-06-30Use getrlimit(2) instead of assuming MAXDSIZ is available in userland.Otto Moerbeek
2014-01-24Don't include <machine/vmparam.h> directly. Instead, get it with its necessaryMiod Vallat
2013-11-12add a variety of missing prototypesTheo de Raadt
2013-11-03Add missing (long long) cast of variable, (long long) castsKenneth R Westerback
2013-11-01Sprinkle (long long) casts where %lld is being used to print daddr_tKenneth R Westerback
2013-10-07Say 'fragments' where fragments are meant. Divide by DEV_BSIZEKenneth R Westerback
2013-10-07Show number of sectors, not the number of 512-byte blocks, whenKenneth R Westerback
2013-10-06daddr_t comment tweak and whitespace fix.Kenneth R Westerback
2013-06-11final removal of daddr64_t. daddr_t has been 64 bit for a long enoughTheo de Raadt
2013-04-23handle large ino_t; ok teduTheo de Raadt
2011-06-05fix format stringCharles Longeau
2011-05-23Allow specifying k/m/g/... suffixes in newfs(8) -S and -s options.David Coppa
2010-03-21compute an estimate of how much memory is needed to fsck_ffs the fsOtto Moerbeek
2009-12-23partion -> partition. First one (mkfs.c) noted by Brad Tilley on tech@.Kenneth R Westerback
2008-08-08Admit b_blkno means block number; a block is DEV_BSIZE (a.k.a.Kenneth R Westerback
2008-01-05handle 64-bit blkno's in format stringOtto Moerbeek
2007-07-07Initialize the first 2 block's worth of inodes for ffs1 as well as ffs2.Todd C. Miller
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-01daddr64_t changes; not fssize is still an int; ok pedro@Otto Moerbeek
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-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-18Do a bounds check to see if the inode table fits on the disk.Otto Moerbeek
2007-05-03Update CGSIZE macro so that it is no longer based on fs_cpg.Todd C. Miller
2007-04-23Remove 'cg_space' from 'struct cg'. Due to the alignment on 64-bitPedro Martelletto
2007-04-18don't let fpg and spc get out of sync. solves a few cases where newfsOtto Moerbeek
2007-04-17Fix merge error; fs_inodefmt was not being set for the ffs2 caseTodd C. Miller
2007-04-13Add support for creating ffs2 filesystems. Note that the conceptTodd C. Miller
2007-04-03Remove obsolete options for superblock fields that are no longer used.Todd C. Miller
2007-04-03Minor cleanup: remove rcsids, remove #ifdef'd out code, COMPAT isTodd C. Miller
2007-04-02Modern disks do bad sector replacement themselves. There is noTodd C. Miller