aboutsummaryrefslogtreecommitdiff
path: root/sbin/newfs/newfs.8
Commit message (Collapse)AuthorAgeFilesLines
* sbin: Remove ancient SCCS tags.Warner Losh2023-11-271-2/+0
| | | | | | | | Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl script. Sponsored by: Netflix
* Remove $FreeBSD$: one-line nroff patternWarner Losh2023-08-161-1/+0
| | | | Remove /^\.\\"\s*\$FreeBSD\$$\n/
* Update newfs(8) and tunefs(8) manual pages.Kirk McKusick2023-08-061-3/+0
| | | | | | | | Delete note that UFS/FFS filesystems running with journaled soft updates cannot run background fsck as 344b5bf made it possible to do so. MFC-with: 344b5bf Sponsored-by: The FreeBSD Foundation
* Enable taking snapshots on UFS/FFS filesystems using journaled soft updates.Kirk McKusick2022-11-131-3/+1
| | | | | | | | | | | All the needed infrastructure updates have been made to allow snapshots to be taken on UFS/FFS filesystems that are using journaled soft updates. The most immediate benefit is the ability to use a snapshot to take a consistent filesystem dump on a live filesystem using the -L option to dump(8). Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D36491
* Add a description of soft updates journaling to newfs(8).Kirk McKusick2022-10-211-1/+41
| | | | | | | | | | Add a descrition to the newfs(8) -j (journal enablement) flag that explains what soft updates journaling does, the tradeoffs to using it, and the limitations that it imposes. Copied from the description in tunefs(8). PR: 261944 Sponsored by: The FreeBSD Foundation
* The fdformat man page is in section 8 (not 1).Jens Schweikhardt2022-08-141-1/+1
|
* Explain the newfs naming conventionMateusz Piotrowski2021-04-171-1/+9
| | | | | | | | | | | It might be unclear why newfs and newfs_msdos should cross-reference each other. Add a note explaining it. This is a follow-up to 74bd20769706041108a573601cf0b61c755bdc56. Reported by: kib Reviewed by: imp, kib, rpokala MFC after: 3 days
* Reference newfs_msdos(8) from the newfs(8) manualMateusz Piotrowski2021-01-071-1/+2
| | | | | | PR: 252484 Reported by: Graham Perrin <grahamperrin@gmail.com> MFC after: 3 days
* newfs(8): Fix unusual Xr orderGordon Bergling2020-12-281-1/+1
| | | | | | - unusual Xr order: gjournal after gpart MFC after: 3 days
* Correct the location of the first backup superblock in fsck_ffs.8.Kirk McKusick2019-08-071-0/+6
| | | | | | | | | | | Make a note in the newfs.8 manual page to update the first backup superblock location when changing the default fragment size for the filesystem. Reported by: O. Hartmann Notes: svn path=/head/; revision=350682
* 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
* Bump date for today's commit.Warner Losh2017-07-071-1/+1
| | | | Notes: svn path=/head/; revision=320788
* Improve wording for -E and -t flags. -E never writes the entire disk,Warner Losh2017-07-071-8/+8
| | | | | | | | | | so don't imply that. Note that if BIO_DELETE isn't supported, the operation will fail (as opposed to writing the entire disk with zeros). Thin storage also benefits from trim. List more accurate reason why trim helps flash-memory. Notes: svn path=/head/; revision=320787
* 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
* It's 2015, and some people are still trying to use fdisk and thenEdward Tomasz Napierala2015-09-021-1/+1
| | | | | | | | | | | | | | | | go asking what debug flags to set for GEOM to make it work. Advice them to use gpart(8) instead. Something similar should probably done with disklabel, but I need to rewrite the disklabel examples first. Reviewed by: wblock@ MFC after: 1 month Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D3315 Notes: svn path=/head/; revision=287396
* fix the docs, the number of frags per inode (NFPI) changed in r228794John-Mark Gurney2015-07-151-4/+4
| | | | | | | | | | | to 2 from 4, but the man page didn't get updated... other minor changes to make igor happy... MFC after: 3 days Notes: svn path=/head/; revision=285615
* mdoc: improvements to SEE ALSO.Joel Dahl2014-12-271-2/+2
| | | | Notes: svn path=/head/; revision=276293
* Sweep man pages replacing ad -> ada.Sergey Kandaurov2013-10-011-3/+3
| | | | | | | | | Approved by: re (blackend) MFC after: 1 week X-MFC note: stable/9 only Notes: svn path=/head/; revision=255977
* Remove contractions.Joel Dahl2013-04-111-1/+1
| | | | Notes: svn path=/head/; revision=249373
* The purpose of this change to the FFS layout policy is to reduce theKirk McKusick2013-03-221-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Update the manual page to reflect the new 32K/4K defaults.Kirk McKusick2011-05-281-4/+4
| | | | | | | Reminded by: Ivan Voras Notes: svn path=/head/; revision=222423
* Xref makefs(8).Jaakko Heinonen2011-02-221-1/+2
| | | | | | | | PR: 154708 Submitted by: jhs Notes: svn path=/head/; revision=218951
* Add the -j option to enable soft updates journaling when creatingKirk McKusick2011-02-161-1/+7
| | | | | | | | | a new file system. Reviewed by: Kostik Belousov <kostikbel@gmail.com> Notes: svn path=/head/; revision=218726
* Add support for FS_TRIM to user-mode UFS utilities.Konstantin Belousov2010-12-291-2/+10
| | | | | | | | | Reviewed by: mckusick, pjd, pho Tested by: pho MFC after: 1 month Notes: svn path=/head/; revision=216798
* Synchronize newfs(8) manual with code.Glen Barber2010-09-141-3/+4
| | | | | | | | | | | PR: 61716 Submitted by: Radim Kolar <hsn at netmag cz> Patch by: arundel Approved by: keramida (mentor) MFC after: 1 week Notes: svn path=/head/; revision=212610
* Rewording and typo fixes in newfs(8).Glen Barber2010-09-121-3/+3
| | | | | | | | | | | PR: 150490 Submitted by: Eitan Adler <foreignuser at eitanadler com> Additional fixes by: Warren Block <wblock at wonkity com>, keramida Approved by: keramida (mentor) MFC after: 1 week Notes: svn path=/head/; revision=212498
* Fix "Empty input line" mdoc warning.Maxim Sobolev2010-03-101-2/+2
| | | | | | | Submitted by: Alexander Best Notes: svn path=/head/; revision=204936
* Slightly improve gjournal documentation.Edward Tomasz Napierala2009-04-291-0/+4
| | | | | | | Reviewed by: pjd Notes: svn path=/head/; revision=191656
* Enable operation of newfs on plain files, which is useful when youLuigi Rizzo2008-12-031-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | want to prepare disk images for emulators (though 'makefs' in port can do something similar). This relies on: + minor changes to pass the consistency checks even when working on a file; + an additional option, '-p partition' , to specify the disk partition to initialize; + some changes on the I/O routines to deal with partition offsets. The latter was a bit tricky to implement, see the details in newfs.h: in newfs, I/O is done through libufs which assumes that the file descriptor refers to the whole partition. Introducing support for the offset in libufs would require a non-backward compatible change in the library, to be dealt with a version bump or with symbol versioning. I felt both approaches to be overkill for this specific application, especially because there might be other changes to libufs that might become necessary in the near future. So I used the following trick: - read access is always done by calling bread() directly, so we just add the offset in the (few) places that call bread(); - write access is done through bwrite() and sbwrite(), which in turn calls bwrite(). To avoid rewriting sbwrite(), we supply our own version of bwrite() here, which takes precedence over the version in libufs. MFC after: 4 weeks Notes: svn path=/head/; revision=185588
* Replace reference from vinum.8 to gvinum.8, it was advised in the PR toRemko Lodder2008-03-211-2/+2
| | | | | | | | | | | | | replace this with vinum.4, but that's the kernel interface manual, which is not appropriate in my understanding. I think that gvinum is a suitable replacement for this. PR: docs/121938 Submitted by: "Federico" <federicogalvezdurand at yahoo dot com> MFC after: 3 days Notes: svn path=/head/; revision=177482
* Rename the undocumented -E option to -X.Poul-Henning Kamp2007-12-161-5/+9
| | | | | | | | | | | | | Implement -E option which will erase the filesystem sectors before making the new filesystem. Reserved space in front of the superblock (bootcode) is not erased. NB: Erasing can take as long time as writing every sector sequentially. This is relevant for all flash based disks which use wearlevelling. Notes: svn path=/head/; revision=174675
* MFp4:Yaroslav Tykhiy2007-11-281-3/+21
| | | | | | | | | | | | | | | | | | | | | | | | | Add a new option to newfs(8), -r, to specify reserved space at the end of the device. It can be useful, e.g., when the device is to become a member of a gmirror array later w/o losing the file system on it. Document the new option in the manpage. While I'm here, improve error handling for -s option, which is syntactically similar to -r; and document the fact that -s0 selects the default fs size explicitly, which can be useful, e.g., in a menu-based wrapper around newfs(8) requiring some value be entered for the fs size. Also fix a small typo in the help line for -s (missing space). Idea and initial implementation by: marck Discussed on: -fs Critical review by: bde Tested with: cmp(1) Notes: svn path=/head/; revision=174011
* Add -J flag to both newfs(8) and tunefs(8) which allows to enable gjournalPawel Jakub Dawidek2006-10-311-1/+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
* Polish previous revision:Ruslan Ermilov2005-01-221-6/+12
| | | | | | | | | - Bump document date. - Spell "file system" properly. - Add missing markup bits. Notes: svn path=/head/; revision=140610
* Add an option to suppress the creation of the .snap directory inWes Peters2005-01-211-1/+16
| | | | | | | | | | | the new filesystem. This is intended for memory and vnode filesystems that will never be fsck'ed or dumped. Obtained from: St. Bernard Software RAPID MFC after: 2 weeks Notes: svn path=/head/; revision=140603
* Assorted markup, grammar, and spelling fixes.Ruslan Ermilov2004-05-171-3/+3
| | | | Notes: svn path=/head/; revision=129327
* 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
* Add a "-l" flag to newfs, which sets the FS_MULTILABEL flag. ThisRobert Watson2004-02-261-1/+3
| | | | | | | | | | | permits users of newfs to set the multilabel flag on UFS1 and UFS2 file systems from inception without using tunefs. Obtained from: TrustedBSD Project Sponsored by: DARPA, McAfee Research Notes: svn path=/head/; revision=126254
* s/disklabel/bsdlabel where needed.Marc Fonvieille2003-10-111-2/+2
| | | | Notes: svn path=/head/; revision=120998
* Remove an unneccessary comma.Ceri Davies2003-09-141-1/+1
| | | | Notes: svn path=/head/; revision=120065
* mdoc(7): Use the new feature of the .In macro.Ruslan Ermilov2003-09-081-1/+1
| | | | Notes: svn path=/head/; revision=119893
* Remove reference to diskpart(8)Christian Brueffer2003-04-201-1/+0
| | | | | | | | PR: 51193 Submitted by: Yonatan@xpert.com Notes: svn path=/head/; revision=113760
* Throw the switch--change to UFS2 as our default file system format forRobert Watson2003-04-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | FreeBSD 5.1-RELEASE and later: - newfs(8) will now create UFS2 file systems unless UFS1 is specifically requested (-O1). To do this, I just twiddled the Oflag default. - sysinstall(8) will now select UFS2 as the default layout for new file systems unless specifically requested (use '1' and '2' to change the file system layout in the disk labeler). To do this, I inverted the ufs2 flag into a ufs1 flag, since ufs2 is now the default and ufs1 is the edge case. There's a slight semantic change in the key behavior: '2' no longer toggles, it changes the selection to UFS2. This is very similar to a patch David O'Brien sent me at one point, and that I couldn't find. Approved by: re (telecon) Reviewed by: mckusick, phk, bmah Notes: svn path=/head/; revision=113751
* mdoc(7) police: markup laundry.Ruslan Ermilov2003-02-231-3/+3
| | | | Notes: svn path=/head/; revision=111285
* Our first keyword hit for apropos ufs2.John W. De Boskey2003-02-191-1/+1
| | | | Notes: svn path=/head/; revision=111113
* 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
* Fix some 'SYNOPSIS' and 'usage' messages.Tom Rhodes2002-08-271-2/+2
| | | | Notes: svn path=/head/; revision=102464
* s/filesystem/file system/g as discussed on -developersTom Rhodes2002-08-211-25/+25
| | | | Notes: svn path=/head/; revision=102231