aboutsummaryrefslogtreecommitdiff
path: root/sbin/tunefs/tunefs.8
Commit message (Collapse)AuthorAgeFilesLines
* Allow dashes as a valid character in UFS labels.Dmitry Morozovsky2019-01-291-2/+2
| | | | | | | | | Reviewed by: mckusick, imp, 0mp MFC after: 2 weeks Differential Revision: D18991 Notes: svn path=/head/; revision=343548
* Allow tunefs to include '_' as a legal character in label namesKirk McKusick2019-01-251-0/+1
| | | | | | | | | | | | | | to make it consistent with newfs. Document the legality of '_' in label names in both tunefs(8) and newfs(8). PR: 235182 Submitted by: darius@dons.net.au Reviewed by: Conrad Meyer MFC after: 3 days Sponsored by: Netflix Notes: svn path=/head/; revision=343449
* Renumber copyright clause 4Warner Losh2017-02-281-1/+1
| | | | | | | | | | | | Renumber cluase 4 to 3, per what everybody else did when BSD granted them permission to remove clause 3. My insistance on keeping the same numbering for legal reasons is too pedantic, so give up on that point. Submitted by: Jan Schaumann <jschauma@stevens.edu> Pull Request: https://github.com/freebsd/freebsd/pull/96 Notes: svn path=/head/; revision=314436
* Mention fsck_ffs -E in tunefs(8). It's non-obvious that one shouldEdward Tomasz Napierala2016-04-191-2/+8
| | | | | | | | | | | | use it after enabling TRIM. Reviewed by: brueffer@ MFC after: 1 month Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D5928 Notes: svn path=/head/; revision=298271
* The purpose of this change to the FFS layout policy is to reduce theKirk McKusick2013-03-221-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | running time for a full fsck. It also reduces the random access time for large files and speeds the traversal time for directory tree walks. The key idea is to reserve a small area in each cylinder group immediately following the inode blocks for the use of metadata, specifically indirect blocks and directory contents. The new policy is to preferentially place metadata in the metadata area and everything else in the blocks that follow the metadata area. The size of this area can be set when creating a filesystem using newfs(8) or changed in an existing filesystem using tunefs(8). Both utilities use the `-k held-for-metadata-blocks' option to specify the amount of space to be held for metadata blocks in each cylinder group. By default, newfs(8) sets this area to half of minfree (typically 4% of the data area). This work was inspired by a paper presented at Usenix's FAST '13: www.usenix.org/conference/fast13/ffsck-fast-file-system-checker Details of this implementation appears in the April 2013 of ;login: www.usenix.org/publications/login/april-2013-volume-38-number-2. A copy of the April 2013 ;login: paper can also be downloaded from: www.mckusick.com/publications/faster_fsck.pdf. Reviewed by: kib Tested by: Peter Holm MFC after: 4 weeks Notes: svn path=/head/; revision=248623
* Advertise growfs(8) a little better.Edward Tomasz Napierala2011-06-221-1/+2
| | | | Notes: svn path=/head/; revision=223430
* We now have multiple filesystems (UFS, ZFS, ...), so for tools that onlyGavin Atkinson2011-05-081-3/+3
| | | | | | | | | | | operate on one type of filesystem, mention this. While here, capitalise the use of "UFS" in growfs.8 to match other uses of the term in other man pages. MFC after: 1 week Notes: svn path=/head/; revision=221659
* Add support for FS_TRIM to user-mode UFS utilities.Konstantin Belousov2010-12-291-1/+10
| | | | | | | | | Reviewed by: mckusick, pjd, pho Tested by: pho MFC after: 1 month Notes: svn path=/head/; revision=216798
* - Merge soft-updates journaling from projects/suj/head into head. ThisJeff Roberson2010-04-241-1/+8
| | | | | | | | | | | brings in support for an optional intent log which eliminates the need for background fsck on unclean shutdown. Sponsored by: iXsystems, Yahoo!, and Juniper. With help from: McKusick and Peter Holm Notes: svn path=/head/; revision=207141
* Implement NFSv4 ACL support for UFS.Edward Tomasz Napierala2009-12-211-1/+4
| | | | | | | Reviewed by: rwatson Notes: svn path=/head/; revision=200796
* The tunefs utility does not work on active filesystems.Remko Lodder2009-10-211-2/+2
| | | | | | | | | PR: docs/139705 Submitted by: Warren Block <wblock at wonkity dot com> Approved by: imp (mentor, implicit) Notes: svn path=/head/; revision=198316
* Slightly improve gjournal documentation.Edward Tomasz Napierala2009-04-291-1/+2
| | | | | | | Reviewed by: pjd Notes: svn path=/head/; revision=191656
* o s/filesystem/file system/g.Maxim Konovalov2007-09-231-2/+2
| | | | | | | | | Pointed out by: ru Approved by: re (bmah) MFC after: 3 days Notes: svn path=/head/; revision=172305
* o You have to reboot the system after tuning softupdates on the rootMaxim Konovalov2007-08-121-1/+3
| | | | | | | | | | filesystem on to make SU work. Approved by: re (hrs) MFC after: 1 week Notes: svn path=/head/; revision=171813
* Add -J flag to both newfs(8) and tunefs(8) which allows to enable gjournalPawel Jakub Dawidek2006-10-311-0/+3
| | | | | | | | | | | support. I left -j flag for UFS journal implementation which we may gain at some point. Sponsored by: home.pl Notes: svn path=/head/; revision=163842
* Expand *n't contractions.Ruslan Ermilov2005-02-131-1/+1
| | | | Notes: svn path=/head/; revision=141846
* Sort sections.Ruslan Ermilov2005-01-181-5/+5
| | | | Notes: svn path=/head/; revision=140415
* Remove advertising clause from University of California Regent's license,Mark Murray2004-04-091-4/+0
| | | | | | | | | per letter dated July 22, 1999. Approved by: core, imp Notes: svn path=/head/; revision=128073
* Remove another reference to ffsinfo.8Christian Brueffer2003-06-171-3/+1
| | | | Notes: svn path=/head/; revision=116507
* Remove references to ffsinfo(8) for now. It was disconnected fromChristian Brueffer2003-06-171-1/+0
| | | | | | | the build almost a year ago. Notes: svn path=/head/; revision=116499
* Sort options.Ruslan Ermilov2003-02-231-3/+3
| | | | Notes: svn path=/head/; revision=111287
* Bring in support for volume labels to the filesystem utilities.Gordon Tetlow2003-02-011-0/+3
| | | | | | | Reviewed by: mckusick Notes: svn path=/head/; revision=110174
* Correct some of the style problems in this file:Robert Watson2002-10-151-4/+4
| | | | | | | | | | | | I introduced a style problem when I sorted 'a' before 'A'; our preferred order sorts 'A' first. Correct. Use .Cm instead of .Ar. Submitted by: bde Notes: svn path=/head/; revision=105156
* Introduce -a [enable|disable] and -l [enable|disable] flags to the tunefsRobert Watson2002-10-141-0/+6
| | | | | | | | | | | command, permitting it to set FS_ACLS and FS_MULTILABEL administrative flags on UFS file systems. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories Notes: svn path=/head/; revision=105120
* Remove the -a maxcontig option, the kernel doesn't inspect fs_maxcontigPoul-Henning Kamp2002-09-061-5/+0
| | | | | | | | | anymore. Sponsored by: DARPA & NAI Labs. Notes: svn path=/head/; revision=103005
* Fix some 'SYNOPSIS' and 'usage' messages.Tom Rhodes2002-08-271-1/+1
| | | | Notes: svn path=/head/; revision=102464
* s/filesystem/file system/g as discussed on -developersTom Rhodes2002-08-211-13/+13
| | | | Notes: svn path=/head/; revision=102231
* mdoc(7) police: laundry.Ruslan Ermilov2002-08-131-17/+16
| | | | Notes: svn path=/head/; revision=101802
* The .Nm utility.Philippe Charnier2002-07-061-3/+4
| | | | Notes: svn path=/head/; revision=99503
* Don't say that an umounted filesystem is required for -n. An unmountedBruce Evans2002-06-211-1/+0
| | | | | | | | filesystem is no more or less required for -n than for any other option. The previous commit clarified the actual requirement. Notes: svn path=/head/; revision=98551
* This commit adds basic support for the UFS2 filesystem. The UFS2Kirk McKusick2002-06-211-24/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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> Notes: svn path=/head/; revision=98542
* mdoc(7) police: markup nits.Ruslan Ermilov2002-05-291-1/+1
| | | | Notes: svn path=/head/; revision=97478
* 'file system' > filesystemTom Rhodes2002-05-061-12/+18
| | | | | | | | | | add FILES section. PR: 34239 Submitted by: Gary W. Swearingen <swear@blarg.net> Notes: svn path=/head/; revision=96119
* Expand the reserved space section. Explain how the amount of reservedGiorgos Keramidas2002-04-161-4/+12
| | | | | | | | | space can affect performance. Submitted by: David Schultz <dschultz@uclink.Berkeley.EDU> Notes: svn path=/head/; revision=94818
* tunefs no longer outputs a warning if one tries to set soft-updates onDima Dorfman2002-01-071-21/+0
| | | | | | | | | | an unmounted filesystem. PR: 32266 Submitted by: Maxim Konovalov <maxim@macomnet.ru> Notes: svn path=/head/; revision=88990
* mdoc(7) police: removed HISTORY info from the .Os call.Ruslan Ermilov2001-07-101-1/+1
| | | | Notes: svn path=/head/; revision=79530
* Add information about the new options to newfs and tunefs which set theNik Clayton2001-04-101-0/+6
| | | | | | | | expected average file size and number of files per directory. Could do with some fleshing out. Notes: svn path=/head/; revision=75379
* The tunefs code assumed that the last argument was the device specification.Philippe Charnier2000-12-101-2/+2
| | | | | | | | | | | | | | | | | | We need to parse the arguments first, then open the device (if specified) and then apply the changes. This change will disallow the (undocumented) use of multiple instances of the same argument on the same command line for the sack of a better error message. Other changes are: 1) the softupdates (-n) now issue a warning about remaining unchanged 2) the usage and man page is changed to specify "space | time" instead of "optimization preference". PR: bin/23335 Submitted by:Mark Peek <mark@whistle.com> Notes: svn path=/head/; revision=69829
* Remove .Op when arg is required (special | filesystem). Document that atPhilippe Charnier2000-11-281-1/+3
| | | | | | | | least one flag is required and check this in the code. Make use of getopt(3). Generalyze printing `... remains unchanged ...'. Notes: svn path=/head/; revision=69314
* mdoc(7) police: use the new features of the Nm macro.Ruslan Ermilov2000-11-201-1/+1
| | | | Notes: svn path=/head/; revision=68960
* Remove single-space hard sentence breaks. These degrade the qualitySheldon Hearn2000-03-011-5/+10
| | | | | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc. Notes: svn path=/head/; revision=57668
* Document a waring that tunefs(8) emits when enabling/disablingAlexey Zelkin2000-01-071-0/+19
| | | | | | | | | | soft updates on an unmounted filesystem. PR: docs/15657 Submitted by: Mark Ovens <mark@ukug.uk.FreeBSD.org> Notes: svn path=/head/; revision=55560
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50476
* Sort options alphabetically.Dag-Erling Smørgrav1999-01-131-2/+2
| | | | Notes: svn path=/head/; revision=42619
* Document -n (soft-update) flag.Philippe Charnier1998-08-031-8/+11
| | | | | | | Add rcsid, remove unused #includes. Sync usage() and SYNOPSIS. Notes: svn path=/head/; revision=38040
* Reviewed by: dyson@freebsd.org (john Dyson), dg@root.com (david greenman)Julian Elischer1998-03-081-0/+1
| | | | | | | | Submitted by: Kirk McKusick (mcKusick@mckusick.com) Obtained from: WHistle development tree Notes: svn path=/head/; revision=34266
* Correct some man page cross references and some fileMike Pritchard1996-02-051-2/+1
| | | | | | | locations. Notes: svn path=/head/; revision=13922
* Add (apparently) Larry McVoy's warning....Peter Wemm1995-08-121-0/+2
| | | | Notes: svn path=/head/; revision=10035
* When tuneing filesystems with tunefs, it is not obvious what the currentJoerg Wunsch1995-06-251-0/+12
| | | | | | | | | | | | | | | | | | | | parameters are. You can use dumpfs, but that's not obvious which settings are tuneable, and is far from clear to the non-guru (it's like using a hexdump of a tar archive to get a table-of-contents). There is also an undocumented option in the man page that can be dangerous. Suppose your disk driver decides to scramble all writes while you tell tunefs to update all backup superblocks. This suggested change adds a '-p' (print) switch to bring it in line with some SVR4 systems. (Slightly changed by me, mostly for optics. - joerg) Submitted by: peter@haywire.dialix.com Notes: svn path=/head/; revision=9315
* Changed manual page to conform to the reality in FreeBSD.David Greenman1995-03-151-9/+8
| | | | Notes: svn path=/head/; revision=7065