summaryrefslogtreecommitdiffstats
path: root/sbin/dumpfs
Commit message (Collapse)AuthorAgeFilesLines
* Use MIN macro from sys/param.h.araujo2016-05-021-2/+1
| | | | MFC after: 2 weeks
* Explicitly add more files to the 'runtime' package.gjb2016-02-091-0/+1
| | | | Sponsored by: The FreeBSD Foundation
* The dumpfs(8) utility doesn't actually use disktab(5); remove ittrasz2015-09-031-1/+0
| | | | | | | from "SEE ALSO". MFC after: 1 month Sponsored by: The FreeBSD Foundation
* It's 2015, and some people are still trying to use fdisk and thentrasz2015-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
* 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-052-6/+30
| |\ \
| * \ \ sync from headsjg2013-04-121-2/+2
| |\ \ \
| * | | | Updated dependenciessjg2013-03-111-0/+1
| | | | |
| * | | | Updated dependenciessjg2013-02-161-2/+0
| | | | |
| | | | |
| | \ \ \
| *-. \ \ \ Sync from headsjg2012-11-041-2/+5
| |\ \ \ \ \
| * | | | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.marcel2012-08-221-0/+20
| | |/ / / / | |/| | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net>
* | | | | | Print leading zeroes of UFS2 fs_id like we do for UFS1.ae2015-05-261-1/+1
| |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | PR: 156908 MFC after: 1 week
* | | | | Convert sbin/ to LIBADDbapt2014-11-251-2/+1
| |_|_|/ |/| | | | | | | | | | | Reduce overlinking
* | | | When running the -m option to generate a newfs(8) command suitable formckusick2013-05-162-3/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | recreating the filesystem, check for and output the -i, -k, and -l options if appropriate. Note the remaining deficiencies of the -m option in the dumpfs(8) manual page. Specifically that newfs(8) options -E, -R, -S, and -T options are not handled and that -p is not useful so is omitted. Also document that newfs(8) options -n and -r are neither checked for nor output but should be. The -r flag is needed if the filesystem uses gjournal(8). PR: bin/163992 Reported by: Dieter <freebsd@sopwith.solgatos.com> Submitted by: Andy Kosela <akosela@andykosela.com> MFC after: 1 week
* | | | Clean up trailing whitespace.mckusick2013-05-161-3/+3
| |_|/ |/| | | | | | | | | | | Submitted by: Andy Kosela MFC after: 1 week
* | | The purpose of this change to the FFS layout policy is to reduce themckusick2013-03-221-2/+2
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Fix problem with geom_label(4) not recognizing UFS labels on filesystemstrasz2012-10-301-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | extended using growfs(8). The problem here is that geom_label checks if the filesystem size recorded in UFS superblock is equal to the provider (i.e. device) size. This check cannot be removed due to backward compatibility. On the other hand, in most cases growfs(8) cannot set fs_size in the superblock to match the provider size, because, differently from newfs(8), it cannot recompute cylinder group sizes. To fix this problem, add another superblock field, fs_providersize, used only for this purpose. The geom_label(4) will attach if either fs_size (filesystem created with newfs(8)) or fs_providersize (filesystem expanded using growfs(8)) matches the device size. PR: kern/165962 Reviewed by: mckusick Sponsored by: FreeBSD Foundation
* | Add support for gjournal to dumpfseadler2012-10-221-0/+2
|/ | | | | | | PR: 165821 Submitted by: Andreas Longwitz <longwitz@incore.de> Approved by: cperciva MFC after: 3 days
* Add missing -l flag to usage().brueffer2011-12-261-1/+1
| | | | | | PR: 163629 Submitted by: olgeni MFC after: 1 week
* Staticify dumpfs.ed2011-12-131-20/+20
| | | | | | This tool only consists of a single C file, so we can simply mark everything except main() static. This seems to shave off about 8% of the binary size.
* Add missing static keywords for global variables to tools in sbin/.ed2011-11-041-1/+1
| | | | | | 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.
* Use _PATH_DEV and make the format more consistent with GEOM_LABEL.delphij2011-07-141-1/+2
| | | | Submitted by: ivoras
* Add a -l option to show file system's corresponding /dev/ufsid path.delphij2011-07-142-5/+26
| | | | | | | This is useful for scripts that converts existing system's fstab to use their /dev/ufsid devices. MFC after: 2 weeks
* 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
* Add support for displaying newfs flags for SU+J and TRIM.jmallett2011-03-231-1/+5
|
* Add support for FS_TRIM to user-mode UFS utilities.kib2010-12-291-1/+3
| | | | | | Reviewed by: mckusick, pjd, pho Tested by: pho MFC after: 1 month
* - Merge soft-updates journaling from projects/suj/head into head. Thisjeff2010-04-241-2/+2
| | | | | | | | 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
* Print leading zeros in the UFS2 FSID.gavin2010-01-061-1/+1
| | | | | | | PR: bin/142155 Submitted by: Efstratios Karatzas gpf.kira gmail.com Approved by: ed (mentor) MFC after: 2 weeks
* Implement NFSv4 ACL support for UFS.trasz2009-12-211-1/+4
| | | | Reviewed by: rwatson
* Switch the default WARNS level for sbin/ to 6.ru2009-10-191-0/+1
| | | | Submitted by: Ulrich Spörlein
* Properly re-create "-s size" argument to newfs(8).ru2009-10-191-1/+1
|
* Print disk offets as %jd rather than %lld; I fixed one before committingrwatson2009-01-281-1/+1
| | | | | | | but missed the other, which breaks 64-bit builds. Reported by: bf <bf2006a at yahoo dot com> MFC after: 1 week
* Bump doc date for recent change.trhodes2009-01-281-1/+1
|
* Add a new flag to dumpfs(8), -f, which causes dumpfs to list all freerwatson2009-01-282-7/+82
| | | | | | | | | | | | | | | | | | | fragments in the file system by fragment (block) number. This new mode does the necessary arithmetic to generate absolute fragment numbers rather than than the cg-relative numbers printed in the default mode. If -f is passed once, contiguous fragment ranges are collapsed into an X-Y format as free block lists are currently printed in regular dumpfs output, but if specified twice, all block numbers are printed individually, allowing both compact and more script-friendly representation. This proves quite handy when attempting to recover deleted data, as it allows exclusion of non-deleted data from blocks searched. MFC after: 1 week Discussed with: jeff, Richard Clayton <richard dot clayton at cl.cam.ac.uk> Sponsored by: Google, Inc.
* Replace incomprehensive description of -m by much clearer text from OpenBSD,pav2007-05-121-2/+3
| | | | | | | | | with the exception of one word. PR: docs/112465 Submitted by: naddy Obtained from: OpenBSD MFC after: 1 week
* Teach about new fields (cg_unrefs and fs_unrefs) and new FS_GJOURNAL flag.pjd2006-10-311-5/+9
| | | | Sponsored by: home.pl
* Sync program's usage() with manpage's SYNOPSIS.ru2005-02-101-1/+1
|
* Mechanically kill hard sentence breaks.ru2004-07-021-1/+2
|
* 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
* Reinstate 1.40 -- swap avgfilesize and avgfpdir column order.truckman2003-12-071-2/+2
| | | | MFC after: 3 days
* I forgot about the code freeze, so back this out.truckman2003-12-011-2/+2
|
* Swap avgfilesize and avgfpdir order to give better column alignment.truckman2003-12-011-2/+2
|
* Print the dirpref avgfilesize and avgfpdir parameters.truckman2003-11-171-0/+2
| | | | MFC after: 2 weeks
* Make this WARNS=2 clean byjohan2003-11-142-20/+22
| | | | | | - using (intmax_t) and %j instead of %q Tested by: make universe
* Marshal newfs -L (filesystem volume names), the names are not marshalledjmallett2003-06-091-0/+2
| | | | with any quoting, but that should be OK for re-input, regardless.
* mdoc(7) police: markup laundry.ru2003-02-231-2/+2
|
OpenPOWER on IntegriCloud