aboutsummaryrefslogtreecommitdiff
path: root/sbin/fsdb/fsdbutil.c
Commit message (Collapse)AuthorAgeFilesLines
* Make this WARNS=2 clean byJohan Karlsson2003-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 Notes: svn path=/head/; revision=122621
* This commit adds basic support for the UFS2 filesystem. The UFS2Kirk McKusick2002-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> Notes: svn path=/head/; revision=98542
* o __P removal.Warner Losh2002-03-211-30/+13
| | | | | | | | | o ansi function definitions. o main prototype removal o unifdef __STDC__ Notes: svn path=/head/; revision=92881
* Something i always wanted to see: add a function to print the list ofJoerg Wunsch2002-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 Notes: svn path=/head/; revision=89827
* Remove a not-very-useful printf(3).Brian Feldman2002-01-251-1/+0
| | | | Notes: svn path=/head/; revision=89792
* Allow fsdb the ability to work with entries named with whitespace embedded.Brian Feldman2002-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. Notes: svn path=/head/; revision=89791
* Respect style(9), one must not include both <sys/types.h> andOllivier Robert2001-03-221-1/+0
| | | | | | | | | <sys/param.h> (the latter includes the former). Submitted by: bde Notes: svn path=/head/; revision=74652
* Include headers to unbreak world.Alfred Perlstein2001-03-211-0/+2
| | | | | | | Submitted by: Ollivier Robert <roberto@eurocontrol.fr> Notes: svn path=/head/; revision=74594
* Remove unused includes.Jeroen Ruigrok van der Werven2000-05-011-1/+0
| | | | Notes: svn path=/head/; revision=59869
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50476
* Fixed printf format errors.Bruce Evans1998-06-281-2/+2
| | | | Notes: svn path=/head/; revision=37237
* Correct use of .Nm. Use .Bl/.El for enumerating options. Use .An. CorrectPhilippe Charnier1998-06-151-11/+6
| | | | | | | | formatting of rcsid. Remove unused #includes. Do not use memory after freeing it. Notes: svn path=/head/; revision=37001
* Fixed bogus casts from (int32_t *) to (time_t *).Bruce Evans1997-03-131-4/+8
| | | | Notes: svn path=/head/; revision=23854
* Missing $Id$Peter Wemm1997-03-131-1/+1
| | | | Notes: svn path=/head/; revision=23839
* Make this compile. Mostly use the new names for the ctime/atime/mtimePeter Wemm1997-03-131-6/+6
| | | | | | | stamps in the inodes and call one of fsck's utility funcs with a new arg. Notes: svn path=/head/; revision=23838
* ts_sec -> tv_secNate Williams1996-09-201-6/+6
| | | | | | | ts_nsec -> tv_nsec Notes: svn path=/head/; revision=18406
* Commit FreeBSD-specific changes. Mainly to do with structure layoutPeter Wemm1995-11-031-6/+6
| | | | | | | differences that we dont have. Notes: svn path=/head/; revision=12051
* Whoops. RE-Import NetBSD's fsdb - I believe this was written by John Kohl.Peter Wemm1995-11-031-0/+204
Obtained from: NetBSD Notes: svn path=/vendor/NetBSD/dist/; revision=12048