summaryrefslogtreecommitdiffstats
path: root/sbin/fsdb/fsdbutil.c
Commit message (Collapse)AuthorAgeFilesLines
* Make this WARNS=2 clean byjohan2003-11-131-7/+9
| | | | | | | | | | - #include <timeconv.h> for _time_to_time32 et al - use (uintmax_t) and %j - remove unused variable 'j' (from PR 39866) PR: 39866 Submitted by: Dan Lukes <dan@obluda.cz> Tested by: make universe
* This commit adds basic support for the UFS2 filesystem. The UFS2mckusick2002-06-211-39/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* o __P removal.imp2002-03-211-30/+13
| | | | | | o ansi function definitions. o main prototype removal o unifdef __STDC__
* Something i always wanted to see: add a function to print the list ofjoerg2002-01-261-2/+136
| | | | | | | | blocks allocated by some inode. Indirect blocks are printed recursively, so beware :), the list could become lengthy... (We should probably add some output pager to fsdb.) MFC after: 1 month
* Remove a not-very-useful printf(3).green2002-01-251-1/+0
|
* Allow fsdb the ability to work with entries named with whitespace embedded.green2002-01-251-1/+26
| | | | | | | | | | | This works by retokenizing a line with a split limit so that if the argument count for a command is greater than the number of arguments formed by splitting apart the line of user input, the last argument is instead all of the remainder of the input line. Yes, I needed this capability at one point to fix a filesystem manually, which happened to break with a problematic space-containing directory entry.
* Respect style(9), one must not include both <sys/types.h> androberto2001-03-221-1/+0
| | | | | | <sys/param.h> (the latter includes the former). Submitted by: bde
* Include headers to unbreak world.alfred2001-03-211-0/+2
| | | | Submitted by: Ollivier Robert <roberto@eurocontrol.fr>
* Remove unused includes.asmodai2000-05-011-1/+0
|
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Fixed printf format errors.bde1998-06-281-2/+2
|
* Correct use of .Nm. Use .Bl/.El for enumerating options. Use .An. Correctcharnier1998-06-151-11/+6
| | | | | formatting of rcsid. Remove unused #includes. Do not use memory after freeing it.
* Fixed bogus casts from (int32_t *) to (time_t *).bde1997-03-131-4/+8
|
* Missing $Id$peter1997-03-131-1/+1
|
* Make this compile. Mostly use the new names for the ctime/atime/mtimepeter1997-03-131-6/+6
| | | | stamps in the inodes and call one of fsck's utility funcs with a new arg.
* ts_sec -> tv_secnate1996-09-201-6/+6
| | | | ts_nsec -> tv_nsec
* Commit FreeBSD-specific changes. Mainly to do with structure layoutpeter1995-11-031-6/+6
| | | | differences that we dont have.
* Whoops. RE-Import NetBSD's fsdb - I believe this was written by John Kohl.peter1995-11-031-0/+204
Obtained from: NetBSD
OpenPOWER on IntegriCloud