aboutsummaryrefslogtreecommitdiff
path: root/sbin/fsdb/fsdb.c
Commit message (Collapse)AuthorAgeFilesLines
* Make fsck WARNS=2 clean.Lukas Ertl2004-10-091-16/+16
| | | | Notes: svn path=/head/; revision=136322
* Make this WARNS=2 clean byJohan Karlsson2003-11-131-0/+1
| | | | | | | | | | | | | - #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
* s/filesystem/file system/g as discussed on -developersTom Rhodes2002-08-211-4/+4
| | | | Notes: svn path=/head/; revision=102231
* This commit adds basic support for the UFS2 filesystem. The UFS2Kirk McKusick2002-06-211-24/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* o __P removal.Warner Losh2002-03-211-29/+16
| | | | | | | | | o ansi function definitions. o main prototype removal o unifdef __STDC__ Notes: svn path=/head/; revision=92881
* 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
* Something i always wanted to see: add a function to print the list ofJoerg Wunsch2002-01-261-16/+23
| | | | | | | | | | | 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
* Avoid pointless initialization of global variables to 0. This onlyJoerg Wunsch2002-01-261-2/+2
| | | | | | | | | | | bloats the resulting binary file by forcing them out of .bss into .data, while the C standard already guarantees them to become initialized to 0 at program startup. MFC after: 1 week Notes: svn path=/head/; revision=89826
* Don't exit with -1 if the user typed "quit".Joerg Wunsch2002-01-261-1/+2
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=89810
* Allow fsdb the ability to work with entries named with whitespace embedded.Brian Feldman2002-01-251-2/+6
| | | | | | | | | | | | | | 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
* Check that the mode argument to fsdb's `chmod' command contains noIan Dowse2001-11-111-1/+1
| | | | | | | | | | inode type bits set. Previously it would let you set IFMT bits (but not clear them). The `chtype' command should be be used instead for changing the inode type; having chmod half-work only causes confusion. Notes: svn path=/head/; revision=86258
* *** empty log message ***David E. O'Brien2001-10-011-3/+4
| | | | Notes: svn path=/head/; revision=84261
* In fsdb, call sblock_init() which is now necessary to initialiseIan Dowse2001-04-231-0/+1
| | | | | | | | the global variable dev_bsize. Add a prototype for sblock_init() to fsck.h, and set the return type correctly. Notes: svn path=/head/; revision=75884
* 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
* More egcs warning fixes:Warner Losh1999-04-251-2/+2
| | | | | | | | | | | | | | o main returns int not void o use braces to avoid potentially ambiguous else Note: The fix to natd is potentially functional in nature since I used the indentation as the right thing rather than the struct semantics. Someone more familiar with the code should double check me on this one. Reviewed by: obrien and chuckr Notes: svn path=/head/; revision=46080
* Fix some calculations that use sizeof to attempt to find the end of anDon Lewis1998-11-091-3/+3
| | | | | | | | | | array that were doing sizeof on an unrelated variable. This just happened to work right on the i386, but would not on the alpha. PR: bin/8427 Notes: svn path=/head/; revision=41023
* Correct use of .Nm. Use .Bl/.El for enumerating options. Use .An. CorrectPhilippe Charnier1998-06-151-14/+6
| | | | | | | | formatting of rcsid. Remove unused #includes. Do not use memory after freeing it. Notes: svn path=/head/; revision=37001
* Remove __progname. Make -f a no-op flag as stated in the man page. RemovePhilippe Charnier1997-06-111-20/+17
| | | | | | | unused variables. Notes: svn path=/head/; revision=26557
* Implement a -r option to fsdb(8), ``read/only''.Joerg Wunsch1997-04-151-43/+52
| | | | Notes: svn path=/head/; revision=24956
* 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-1/+1
| | | | | | | stamps in the inodes and call one of fsck's utility funcs with a new arg. Notes: svn path=/head/; revision=23838
* Get rid of useless -f flag (though left for historical reasons).Guido van Rooij1996-09-301-2/+9
| | | | Notes: svn path=/head/; revision=18585
* Add chlen command so you can set the size of an inode. This was handyGuido van Rooij1996-09-261-0/+23
| | | | | | | | | in order to create sparse directory files that caused a panic of a filesystem where fsck would not find anything. A fix for fsck is in the make but still has to be reviewed by Kirk McKusick. Notes: svn path=/head/; revision=18498
* ts_sec -> tv_secNate Williams1996-09-201-2/+2
| | | | | | | ts_nsec -> tv_nsec Notes: svn path=/head/; revision=18406
* Commit FreeBSD-specific changes. Mainly to do with structure layoutPeter Wemm1995-11-031-8/+8
| | | | | | | 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/+865
Obtained from: NetBSD Notes: svn path=/vendor/NetBSD/dist/; revision=12048