aboutsummaryrefslogtreecommitdiff
path: root/sbin/dumpfs
Commit message (Collapse)AuthorAgeFilesLines
* Replace incomprehensive description of -m by much clearer text from OpenBSD,Pav Lucistnik2007-05-121-2/+3
| | | | | | | | | | | | with the exception of one word. PR: docs/112465 Submitted by: naddy Obtained from: OpenBSD MFC after: 1 week Notes: svn path=/head/; revision=169511
* Teach about new fields (cg_unrefs and fs_unrefs) and new FS_GJOURNAL flag.Pawel Jakub Dawidek2006-10-311-5/+9
| | | | | | | Sponsored by: home.pl Notes: svn path=/head/; revision=163844
* Sync program's usage() with manpage's SYNOPSIS.Ruslan Ermilov2005-02-101-1/+1
| | | | Notes: svn path=/head/; revision=141611
* Mechanically kill hard sentence breaks.Ruslan Ermilov2004-07-021-1/+2
| | | | Notes: svn path=/head/; revision=131488
* Remove advertising clause from University of California Regent's license,Mark Murray2004-04-092-8/+0
| | | | | | | | | per letter dated July 22, 1999. Approved by: core, imp Notes: svn path=/head/; revision=128073
* Reinstate 1.40 -- swap avgfilesize and avgfpdir column order.Don Lewis2003-12-071-2/+2
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=123219
* I forgot about the code freeze, so back this out.Don Lewis2003-12-011-2/+2
| | | | Notes: svn path=/head/; revision=123079
* Swap avgfilesize and avgfpdir order to give better column alignment.Don Lewis2003-12-011-2/+2
| | | | Notes: svn path=/head/; revision=123078
* Print the dirpref avgfilesize and avgfpdir parameters.Don Lewis2003-11-171-0/+2
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=122825
* Make this WARNS=2 clean byJohan Karlsson2003-11-142-20/+22
| | | | | | | | | - using (intmax_t) and %j instead of %q Tested by: make universe Notes: svn path=/head/; revision=122670
* Marshal newfs -L (filesystem volume names), the names are not marshalledJuli Mallett2003-06-091-0/+2
| | | | | | | with any quoting, but that should be OK for re-input, regardless. Notes: svn path=/head/; revision=116083
* mdoc(7) police: markup laundry.Ruslan Ermilov2003-02-231-2/+2
| | | | Notes: svn path=/head/; revision=111285
* Correct lines incorrectly added to the copyright message. Add missing period.Kirk McKusick2003-02-141-4/+1
| | | | | | | | Submitted by: Bruce Evans <bde@zeta.org.au> Sponsored by: DARPA & NAI Labs. Notes: svn path=/head/; revision=110884
* 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
* Spell libufs correctly in DPADD.Ruslan Ermilov2003-01-261-1/+1
| | | | | | | Reviewed by: juli Notes: svn path=/head/; revision=109883
* Parse both old flags location and new one. Print out new flags includingNate Lawson2003-01-241-14/+24
| | | | | | | acls, multilabel, and location updated. Notes: svn path=/head/; revision=109767
* Add libufs to dependencies.Juli Mallett2003-01-201-1/+2
| | | | Notes: svn path=/head/; revision=109599
* Kill initialisation and shadow warnings. Half-hearted cleanup (e.g. only theJuli Mallett2003-01-191-20/+21
| | | | | | | | | | more important ones) of format warnings. XXX Lots of this assumes int32 can be printed with %d. Yuck. Reviewed by: bde Notes: svn path=/head/; revision=109532
* Add support to marshal a filesystem to a newfs(8) command that could be usedJuli Mallett2003-01-192-18/+94
| | | | | | | | | to create it. A small number of options are not marshalled as they are things it would be dumb to spit out, as they are used by internal computations, and newfs may change them, or they may not be directly apparent. Notes: svn path=/head/; revision=109525
* Let libufs handle all the work with regard to going through a list of cgs, now.Juli Mallett2003-01-191-8/+7
| | | | Notes: svn path=/head/; revision=109519
* Use libufs to read one cylinder group from the disk at a time.Juli Mallett2003-01-191-7/+2
| | | | Notes: svn path=/head/; revision=109510
* Simplify the main function now that libufs will hunt for the disk for us.Juli Mallett2003-01-191-13/+7
| | | | Notes: svn path=/head/; revision=109507
* Simplify conditional.Juli Mallett2003-01-181-6/+4
| | | | Notes: svn path=/head/; revision=109461
* Create a new 32-bit fs_flags word in the superblock. Add code to moveKirk McKusick2002-11-271-1/+1
| | | | | | | | | | | | | | | | | | | | the old 8-bit fs_old_flags to the new location the first time that the filesystem is mounted by a new kernel. One of the unused flags in fs_old_flags is used to indicate that the flags have been moved. Leave the fs_old_flags word intact so that it will work properly if used on an old kernel. Change the fs_sblockloc superblock location field to be in units of bytes instead of in units of filesystem fragments. The old units did not work properly when the fragment size exceeeded the superblock size (8192). Update old fs_sblockloc values at the same time that the flags are moved. Suggested by: BOUWSMA Barry <freebsd-misuser@netscum.dyndns.dk> Sponsored by: DARPA & NAI Labs. Notes: svn path=/head/; revision=107294
* Deal with the possibility that time_t != int32_t. Otherwise ia64 thoughtPeter Wemm2002-11-171-2/+4
| | | | | | | the fs_old_size was the half part of fs_old_time etc. Notes: svn path=/head/; revision=107031
* Use more non-b0rked error reporting. Print the disk we are trying to openJuli Mallett2002-11-051-3/+6
| | | | | | | | | and (we have the disk error from libufs? the disk error: the errno). Requested by: bde, <many> Notes: svn path=/head/; revision=106456
* Forgot to include <errno.h> when using 'errno' here.Juli Mallett2002-10-221-0/+1
| | | | Notes: svn path=/head/; revision=105741
* When errno is not set, do not use warn(3).Juli Mallett2002-10-221-1/+2
| | | | Notes: svn path=/head/; revision=105739
* Use the libufs_printerror() function, which hopefully will deconfuse usersJuli Mallett2002-10-221-1/+2
| | | | | | | | | getting error cases in a libufsificated dumpfs(8). Poked by: kkenn Notes: svn path=/head/; revision=105738
* s/filesystem/file system/g as discussed on -developersTom Rhodes2002-08-211-4/+4
| | | | Notes: svn path=/head/; revision=102231
* Simplify some things to use libufs-provided functionality here, such as theJuli Mallett2002-08-111-21/+28
| | | | | | | | | version of UFS on a disk, and bread() instead of other types of idiocy. Obtained from: jmallett_libufs Perforce branch. Notes: svn path=/head/; revision=101688
* Remove unused variables due to libufs(3) commit. Clean up extraneous use ofJuli Mallett2002-07-111-4/+3
| | | | | | | semicolon at closing paren of a function body. Notes: svn path=/head/; revision=99827
* Convert dumpfs(8) to libufs(3), rather than rolling local functions for aJuli Mallett2002-07-112-39/+14
| | | | | | | number of things. Notes: svn path=/head/; revision=99826
* The .Nm utilityPhilippe Charnier2002-07-061-3/+4
| | | | Notes: svn path=/head/; revision=99501
* This commit adds basic support for the UFS2 filesystem. The UFS2Kirk McKusick2002-06-211-106/+128
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* more file system > filesystemTom Rhodes2002-05-161-4/+4
| | | | Notes: svn path=/head/; revision=96707
* Sigh, more BBSIZE related breakage.Poul-Henning Kamp2002-05-121-0/+1
| | | | | | | Sponsored by: DARPA & NAI Labs. Notes: svn path=/head/; revision=96478
* o __P removedWarner Losh2002-03-201-16/+9
| | | | | | | | | | o ansi function prototypes o unifdef -D__STDC__ o __dead2 on usage prototype o remove now-bogus main prototype Notes: svn path=/head/; revision=92839
* Remove 'register' keyword.David E. O'Brien2002-03-201-4/+4
| | | | | | | | | It does not help modern compilers, and some may take some hit from it. (I also found several functions that listed *every* of its 10 local vars with "register" -- just how many free registers do people think machines have?) Notes: svn path=/head/; revision=92806
* Default to WARNS=2.David E. O'Brien2001-12-041-0/+1
| | | | | | | | | Binary builds that cannot handle this must explicitly set WARNS=0. Reviewed by: mike Notes: svn path=/head/; revision=87325
* mdoc(7) police: removed HISTORY info from the .Os call.Ruslan Ermilov2001-07-101-1/+1
| | | | Notes: svn path=/head/; revision=79530
* - Backout botched attempt to introduce MANSECT feature.Ruslan Ermilov2001-03-261-0/+1
| | | | | | | - MAN[1-9] -> MAN. Notes: svn path=/head/; revision=74815
* Set the default manual section for sbin/ to 8.Ruslan Ermilov2001-03-201-1/+1
| | | | Notes: svn path=/head/; revision=74531
* The ffs superblock includes a 128-byte region for use by temporaryIan Dowse2001-01-151-2/+2
| | | | | | | | | | | | | | | | | | | | | | | in-core pointers to summary information. An array in this region (fs_csp) could overflow on filesystems with a very large number of cylinder groups (~16000 on i386 with 8k blocks). When this happens, other fields in the superblock get corrupted, and fsck refuses to check the filesystem. Solve this problem by replacing the fs_csp array in 'struct fs' with a single pointer, and add padding to keep the length of the 128-byte region fixed. Update the kernel and userland utilities to use just this single pointer. With this change, the kernel no longer makes use of the superblock fields 'fs_csshift' and 'fs_csmask'. Add a comment to newfs/mkfs.c to indicate that these fields must be calculated for compatibility with older kernels. Reviewed by: mckusick Notes: svn path=/head/; revision=71073
* mdoc(7) police: use the new features of the Nm macro.Ruslan Ermilov2000-11-201-1/+1
| | | | Notes: svn path=/head/; revision=68960
* $Id$ -> $FreeBSD$Peter Wemm1999-08-282-2/+2
| | | | Notes: svn path=/head/; revision=50476
* Print out the fields that are set in fs_flags.Mike Pritchard1999-07-181-1/+12
| | | | Notes: svn path=/head/; revision=48875
* Print out the fs_id field.Poul-Henning Kamp1999-06-271-1/+2
| | | | Notes: svn path=/head/; revision=48271
* Add rcsid. Remove unused #includes.Philippe Charnier1998-06-151-4/+5
| | | | Notes: svn path=/head/; revision=36998
* Check bytes read to prevent random error message.Robert Nordier1998-04-201-1/+8
| | | | Notes: svn path=/head/; revision=35341