summaryrefslogtreecommitdiffstats
path: root/sbin/newfs
Commit message (Collapse)AuthorAgeFilesLines
* Properly calculate the initial number of fragments in a large filesystem.mckusick2002-11-151-1/+2
| | | | Sponsored by: DARPA & NAI Labs.
* Bound the size of the superblock to SBLOCKSIZE.mckusick2002-10-181-0/+2
| | | | | Submitted by: BOUWSMA Beery <freebsd-misuser@netscum.dyndns.dk> Sponsored by: DARPA & NAI Labs.
* Remove a comma trailing an if clause.phk2002-10-011-1/+1
| | | | | | According to Kirk: "Luckily, the statement is usually true". Spotted by: FlexeLint
* Use the standardized CHAR_BIT constant instead of NBBY in userland.mike2002-09-251-5/+6
|
* Failure to rewrite the disklabel should not be fatal.phk2002-09-221-4/+2
| | | | Sponsored by: DARPA & NAI Labs.
* Fix some 'SYNOPSIS' and 'usage' messages.trhodes2002-08-271-2/+2
|
* s/filesystem/file system/g as discussed on -developerstrhodes2002-08-214-51/+51
|
* mdoc(7) police: Consistently name options' arguments in the SYNOPSIS and ↵ru2002-08-131-16/+23
| | | | DESCRIPTION sections..
* di_createtime -> di_birthtime.roberto2002-07-171-1/+1
| | | | Submitted by: Udo Schweigert <Udo.Schweigert@siemens.com>
* Fixed 4 printf format errors that were fatal on alphas. %qd is not evenbde2002-07-111-7/+9
| | | | | suitable for printing quad_t's since it is equivalent to %lld but quad_t is unsigned long on alphas. quad_t shouldn't be used anyway.
* The .Nm utilitycharnier2002-07-061-6/+9
|
* Get rid of paranoia that zeros the boot block area as this hasmckusick2002-06-221-7/+0
| | | | | | | bad effect on existing bootstraps. Submitted by: Jake Burkholder <jake@locore.ca> Sponsored by: DARPA & NAI Labs.
* This commit adds basic support for the UFS2 filesystem. The UFS2mckusick2002-06-214-510/+449
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | filesystem expands the inode to 256 bytes to make space for 64-bit block pointers. It also adds a file-creation time field, an ability to use jumbo blocks per inode to allow extent like pointer density, and space for extended attributes (up to twice the filesystem block size worth of attributes, e.g., on a 16K filesystem, there is space for 32K of attributes). UFS2 fully supports and runs existing UFS1 filesystems. New filesystems built using newfs can be built in either UFS1 or UFS2 format using the -O option. In this commit UFS1 is the default format, so if you want to build UFS2 format filesystems, you must specify -O 2. This default will be changed to UFS2 when UFS2 proves itself to be stable. In this commit the boot code for reading UFS2 filesystems is not compiled (see /sys/boot/common/ufsread.c) as there is insufficient space in the boot block. Once the size of the boot block is increased, this code can be defined. Things to note: the definition of SBSIZE has changed to SBLOCKSIZE. The header file <ufs/ufs/dinode.h> must be included before <ufs/ffs/fs.h> so as to get the definitions of ufs2_daddr_t and ufs_lbn_t. Still TODO: Verify that the first level bootstraps work for all the architectures. Convert the utility ffsinfo to understand UFS2 and test growfs. Add support for the extended attribute storage. Update soft updates to ensure integrity of extended attribute storage. Switch the current extended attribute interfaces to use the extended attribute storage. Add the extent like functionality (framework is there, but is currently never used). Sponsored by: DARPA & NAI Labs. Reviewed by: Poul-Henning Kamp <phk@freebsd.org>
* more file system > filesystemtrhodes2002-05-164-39/+39
|
* Remove the -v option, it is now default behaviour.phk2002-04-242-17/+5
| | | | Sponsored by: DARPA & NAI Labs
* Continue the cleanup preparations for UFS2 (& GEOM):phk2002-04-243-168/+116
| | | | | | | | | | | | | | | | | | | | | | | | | | | Use only one filedescriptor. Open in R/O or R/W based in the '-N' option. Make the filedescriptor a global variable instead of passing it around as semi-global variable(s). Remove the undocumented ability to specify type without '-T' option. Replace fatal() with straight err(3)/errx(3). Save calls to strerror() where applicable. Loose the progname variable. Get the sense of the cpgflag test correct so we only issue warnings if people specify cpg and can't get that. It can be argued that this should be an error. Remove the check to see if the disk is mounted: Open for writing would fail if it were mounted. Attempt to get the sectorsize and mediasize with the generic disk ioctls, fall back to disklabel and /etc/disktab as we can. Notice that on-disk labels still take precedence over /etc/disktab, this is probably wrong, but not as wrong as the entire concept of /etc/disktab is. Sponsored by: DARPA & NAI Labs.
* bbsize and sbsize cannot ever be trusted from the disklabel, inphk2002-04-073-53/+4
| | | | | | | | | particular as there may not be one. Remove #if 0'ed code which might mislead people to think otherwise. unifdef -ULOSTDIR, fsck can make lost+found on the fly. Sponsored by: DARPA & NAI Labs
* Fixed some style bugs in axings. Whitespace before __P was not axed whenbde2002-04-041-6/+6
| | | | | __P was axed. The ordering of several things was bogotified by axing ifdefs.
* Fixed some English errors in previous commit.bde2002-04-041-14/+15
| | | | | Fixed some style bugs in the removal of __P(()). Whitespace before "__P((" was not removed.
* Add more DWIM/autoadjustment and less evil style(9) banned exit(2) codes.phk2002-04-031-15/+17
| | | | | | Add some missing statics. Sponsored by: DARPA & NAI Labs.
* Unifdef -DCOMPATphk2002-04-031-22/+0
|
* Swing the axe and remove some archaic features from newfs which modernphk2002-03-204-339/+52
| | | | | | | | | | | | | | | | | | | diskdrives do neither need nor want: -O create a 4.3BSD format filesystem -d rotational delay between contiguous blocks -k sector 0 skew, per track -l hardware sector interleave -n number of distinguished rotational positions -p spare sectors per track -r revolutions/minute -t tracks/cylinder -x spare sectors per cylinder No change in the produced filesystem image unless one or more of these options were used. Approved by: mckusick
* Add the undocumented -R option to disable randomness for regression-testing.phk2002-03-197-3/+71
| | | | | | | | Add a couple of simple regression tests accessible with "make test", they depend on the md(4) driver. FYI I have also tried running the test against a week old newfs and it passed.
* Further cleanups.phk2002-03-193-58/+96
|
* Replace a number of similar `for' loops with a new `ilog2()' functioniedowse2002-03-191-10/+17
| | | | that computes the base-2 log of a power of 2.
* Complete the ANSIfication of newfs by converting function declarationsiedowse2002-03-192-74/+17
| | | | to C89 style.
* The FSIRAND code is always compiled in, and it is unlikely thatiedowse2002-03-192-20/+1
| | | | | | anyone needs a newfs without it. Remove the #ifdef's from around the code and the -DFSIRAND from the Makefile. Also remove redundant declarations of random() and srandomdev().
* Remove the ancient STANDALONE code.iedowse2002-03-192-119/+1
| | | | Approved by: phk
* Remove yet more vestiges of mount_mfs.iedowse2002-03-182-8/+0
|
* Fixed some style bugs (mainly ones not fixed or made worse by rev.1.44).bde2002-03-181-8/+9
| | | | | Don't use ISO string concatentation to obfuscate long single-line messages...
* Fixed some style bugs (mainly ones not fixed or made worse by rev.1.41).bde2002-03-181-12/+16
| | | | | | Old code obfuscates long (but single-line) messages by printing them in pieces using %s. Rev.1.41 obfuscated some new long messages using ISO string concatenation. This commit only fixes the new obfuscations.
* Removed vestiges of mount_mfs. Sorted the Makefile a bit.bde2002-03-182-15/+3
|
* Fixed 2 layers of breakage of WARNS. Setting WARNS unconditionally tobde2002-03-181-1/+1
| | | | 0 was bad and setting it unconditionally to 2 was worse.
* Remove __P() and register.phk2002-03-173-32/+32
| | | | | | | | Set WARNS=2 This is the beginning of a pre-UFS2 cleanup of newfs. Sponsored by: DARPA, NAI Labs
* Update the default newfs block and fragment sizes from 8192/1024 tosheldonh2001-12-112-7/+11
| | | | | | | | | | | | | | | | | | | 16384/2048. Following recent discussions on the -arch mailing list, involving dillon and mckusick, this change parallels the one made over a decade ago when the default was bumped up from 4096/512. This should provide significant performance improvements for most folks, less significant performance losses for a few folks and wasted space lost to large fragments for many folks. For discussion, please see the following thread in the -arch archive: Subject: Using a larger block size on large filesystems The discussion ceases to be relevant when the issue of partitioning schemes is raised.
* Fix typo: 'fragement' -> 'fragment'sheldonh2001-12-071-1/+1
|
* Default to WARNS=2.obrien2001-12-041-0/+2
| | | | | | Binary builds that cannot handle this must explicitly set WARNS=0. Reviewed by: mike
* Fix the example of suggested default settings. It stated that settingssheldonh2001-11-271-1/+1
| | | | | | were only of benefit to large filesystems, which recent research suggests is not the case, and which the original author of the text no longer endorses.
* Correct the example introduced in rev 1.29, which suggested a block:fragsheldonh2001-11-271-4/+4
| | | | | | | | | | | size ratio other than 8:1. Currently, we only recommend an 8:1 ratio, because the impact of others ratios has not been adequately investigated. Also, do not recommend the use of the -c option in the example, since newfs now automatically calculates the best cyl:cylgrp ratio. This change was discussed with the author of rev 1.29.
* Remove support for FreeBSD/tahoepeter2001-11-031-19/+0
| | | | Submitted by: phk
* style(9) cleanup.phk2001-11-022-53/+52
| | | | | Submitted by: j mckitrick <jcm@freebsd-uk.eu.org> Reviewed by: phk, /sbin/md5
* Fix diskless clients by removing the code for calculating the minimumroberto2001-10-181-13/+1
| | | | | | | value for cpg. The change was bogus. Submitted by: bde MFC after: 2 days
* Document the optimal block:fragment ratio, per discussiondougb2001-10-151-0/+3
| | | | | | on -arch and cvs-all. Reviewed by: dillon
* Following the discussion in -arch and the submission of a patch by bde, hereroberto2001-10-042-11/+20
| | | | | | | it is. I added the manpage change. Submitted by: bde MFC after: 1 week
* Handle snprintf() returning < 0 (not just -1)brian2001-08-201-2/+2
| | | | MFC after: 2 weeks
* Handle snprintf() returning -1.brian2001-08-201-0/+2
| | | | MFC after: 2 weeks
* Silence non-constant format string warnings by marking functionskris2001-08-191-3/+3
| | | | | | | as __printflike()/__printf0like(), adding const, or adding missing "%s" format strings, as appropriate. MFC after: 2 weeks
* Remove whitespace at EOL.dd2001-07-151-7/+7
|
* mdoc(7) police: removed HISTORY info from the .Os call.ru2001-07-101-1/+1
|
* mdoc(7) police: remove extraneous .Pp before and/or after .Sh.dd2001-07-091-2/+0
|
OpenPOWER on IntegriCloud