summaryrefslogtreecommitdiffstats
path: root/sbin/tunefs
Commit message (Collapse)AuthorAgeFilesLines
* Mention fsck_ffs -E in tunefs(8). It's non-obvious that one shouldtrasz2016-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
* MFHgjb2016-03-101-1/+1
|\ | | | | | | Sponsored by: The FreeBSD Foundation
| * tunefs: clear the entire previous label when setting a new oneemaste2016-03-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | strlcpy(3) null terminates but does not zero-fill the buffer, so would leave beind any portion of the previous volume label longer than the new one. Note that tunefs only allows -L args up to a length of MAXVOLLEN-1, so the stored label will be null-terminated (whether or not required by UFS). Reviewed by: imp Sponsored by: The FreeBSD Foundation
* | Explicitly add more files to the 'runtime' package.gjb2016-02-091-0/+1
|/ | | | Sponsored by: The FreeBSD Foundation
* Add META_MODE support.sjg2015-06-131-0/+19
|\ | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp
| * dirdeps.mk now sets DEP_RELDIRsjg2015-06-081-2/+0
| |
| * Merge sync of headsjg2015-05-271-2/+1
| |\ | |/ |/|
| * Updated dependenciessjg2014-05-161-1/+0
| |
| * Updated dependenciessjg2014-05-101-0/+2
| |
| * Merge from headsjg2013-09-051-4/+4
| |\
| * \ sync from headsjg2013-04-122-9/+48
| |\ \
| * | | Updated dependenciessjg2013-03-111-0/+1
| | | |
| * | | Updated dependenciessjg2013-02-161-2/+0
| | | |
| | | |
| | \ \
| *-. \ \ Sync from headsjg2012-11-041-16/+15
| |\ \ \ \
| * | | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.marcel2012-08-221-0/+20
| | |/ / / | |/| | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net>
* | | | | Convert sbin/ to LIBADDbapt2014-11-251-2/+1
| |_|_|/ |/| | | | | | | | | | | Reduce overlinking
* | | | Constify string pointers.delphij2013-05-161-3/+3
| | | | | | | | | | | | | | | | | | | | Verified with: sha256(1) MFC after: 2 weeks
* | | | Fix error check.mckusick2013-04-231-1/+1
| |_|/ |/| | | | | | | | | | | Submitted by: Andrey Chernov (ache@) MFC after: 3 days
* | | The purpose of this change to the FFS layout policy is to reduce themckusick2013-03-222-8/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | The .journal file needs to reside on the ROOTINO which must not extendpho2013-02-271-1/+1
| |/ |/| | | | | beyond direct blocks. A typo caused this check to fail.
* | Declare functions as static and move global variables to the top;trasz2012-10-281-13/+12
| | | | | | | | no functional changes.
* | Fix sbin/ build with a 64-bit ino_t.mdf2012-09-271-3/+3
|/ | | | Original code by: Gleb Kurtsou
* Fix warning when compiling with gcc46:eadler2012-01-101-2/+1
| | | | | | | error: variable 'Sflag' set but not used Approved by: dim MFC after: 3 days
* Add missing static keywords for global variables to tools in sbin/.ed2011-11-041-2/+2
| | | | | | These tools declare global variables without using the static keyword, even though their use is limited to a single C-file, or without placing an extern declaration of them in the proper header file.
* After creating a filesystem using newfs -j the time stamps are allmckusick2011-10-111-0/+10
| | | | | | | | | | | zero and thus report as having been made in January 1970. Apart from looking a bit silly, it also triggers alarms from scripts that detect weird time stamps. This update sets all 4 (or 3, in the case of UFS1) time stamps to the current time when enabling journaling during newfs or later when enabling it with tunefs. Reported by: Hans Ottevanger <hans@beastielabs.net> MFC after: 1 week
* Advertise growfs(8) a little better.trasz2011-06-221-1/+2
|
* We now have multiple filesystems (UFS, ZFS, ...), so for tools that onlygavin2011-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
* When creating a directory entry for the journal, always read at leastkib2011-02-121-10/+20
| | | | | | | | | | | the fragment, and write the full block. Reading less might not work due to device sector size bigger then size of direntries in the last directory fragment. Reported by: bz In collaboration with: pho Reviewed by: jeff Tested by: bz, pho
* Add support for FS_TRIM to user-mode UFS utilities.kib2010-12-292-5/+50
| | | | | | Reviewed by: mckusick, pjd, pho Tested by: pho MFC after: 1 month
* - Round up the journal size to the block size so we don't confuse fsck.jeff2010-05-181-4/+8
| | | | | | | | | | | Reported by: Mikolaj Golub <to.my.trociny@gmail.com> - Only require 256k of blocks per-cg when trying to allocate contiguous journal blocks. The storage may not actually be contiguous but is at least within one cg. - When disabling SUJ leave SU enabled and report this to the user. It is expected that users will upgrade SU filesystems to SUJ and want a similar downgrade path.
* Improve usage of tunefs:edwin2010-05-011-3/+4
| | | | | | | Document -j switch in usage() to reflect recent SUJ work. Submitted by: Alastair Hogge MFC after: 1 week
* - Use the path to the filesystem mountpoint to look up the statfsjeff2010-04-301-4/+4
| | | | | | | | structure so that we correctly reload. Note that tunefs doesn't properly detect the need to reload if the disk device is specified for a read-only mounted filesystem. - Lessen the contiguity requirement for the journal so that it is more likely to succeed.
* - Temporarily lower WARNS until I fix alignment warnings on sparc64.jeff2010-04-241-0/+2
| | | | Reported by: Florian Smeets
* - Merge soft-updates journaling from projects/suj/head into head. Thisjeff2010-04-242-9/+567
| | | | | | | | 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
* Quiet spurious warnings.mckusick2010-02-111-2/+2
|
* Raise WARNS for various tools where possible.ed2010-01-171-1/+0
| | | | Submitted by: Marius Nünnerich <marius@nuenneri.ch>
* Implement NFSv4 ACL support for UFS.trasz2009-12-212-11/+54
| | | | Reviewed by: rwatson
* The tunefs utility does not work on active filesystems.remko2009-10-211-2/+2
| | | | | | PR: docs/139705 Submitted by: Warren Block <wblock at wonkity dot com> Approved by: imp (mentor, implicit)
* Switch the default WARNS level for sbin/ to 6.ru2009-10-191-0/+1
| | | | Submitted by: Ulrich Spörlein
* Slightly improve gjournal documentation.trasz2009-04-291-1/+2
| | | | Reviewed by: pjd
* o s/filesystem/file system/g.maxim2007-09-231-2/+2
| | | | | | Pointed out by: ru Approved by: re (bmah) MFC after: 3 days
* o You have to reboot the system after tuning softupdates on the rootmaxim2007-08-121-1/+3
| | | | | | | filesystem on to make SU work. Approved by: re (hrs) MFC after: 1 week
* Add -J flag to both newfs(8) and tunefs(8) which allows to enable gjournalpjd2006-10-312-7/+45
| | | | | | | | support. I left -j flag for UFS journal implementation which we may gain at some point. Sponsored by: home.pl
* Expand *n't contractions.ru2005-02-131-1/+1
|
* Sort sections.ru2005-01-181-5/+5
|
* Remove advertising clause from University of California Regent's license,markm2004-04-092-8/+0
| | | | | | per letter dated July 22, 1999. Approved by: core, imp
* Fixed some style bugs in the residue of rev.1.14 (mainly initialization inbde2004-03-261-26/+23
| | | | declarations, uncuddled elses and excessive braces).
* Fixed some style bugs in or related to rev.1.13 (mainly misindentation ofbde2004-03-261-109/+128
| | | | the getopt() case statement).
* Remove another reference to ffsinfo.8brueffer2003-06-171-3/+1
|
* Remove references to ffsinfo(8) for now. It was disconnected frombrueffer2003-06-171-1/+0
| | | | the build almost a year ago.
OpenPOWER on IntegriCloud