summaryrefslogtreecommitdiffstats
path: root/sbin/fsdb/fsdb.c
Commit message (Collapse)AuthorAgeFilesLines
* Make fsck WARNS=2 clean.le2004-10-091-16/+16
|
* Make this WARNS=2 clean byjohan2003-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
* s/filesystem/file system/g as discussed on -developerstrhodes2002-08-211-4/+4
|
* This commit adds basic support for the UFS2 filesystem. The UFS2mckusick2002-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>
* more file system > filesystemtrhodes2002-05-161-4/+4
|
* o __P removal.imp2002-03-211-29/+16
| | | | | | o ansi function definitions. o main prototype removal o unifdef __STDC__
* Remove 'register' keyword.obrien2002-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?)
* Something i always wanted to see: add a function to print the list ofjoerg2002-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
* Avoid pointless initialization of global variables to 0. This onlyjoerg2002-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
* Don't exit with -1 if the user typed "quit".joerg2002-01-261-1/+2
| | | | MFC after: 1 week
* Allow fsdb the ability to work with entries named with whitespace embedded.green2002-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.
* Check that the mode argument to fsdb's `chmod' command contains noiedowse2001-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.
* *** empty log message ***obrien2001-10-011-3/+4
|
* In fsdb, call sblock_init() which is now necessary to initialiseiedowse2001-04-231-0/+1
| | | | | the global variable dev_bsize. Add a prototype for sblock_init() to fsck.h, and set the return type correctly.
* Remove unused includes.asmodai2000-05-011-1/+0
|
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* More egcs warning fixes:imp1999-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
* Fix some calculations that use sizeof to attempt to find the end of antruckman1998-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
* Correct use of .Nm. Use .Bl/.El for enumerating options. Use .An. Correctcharnier1998-06-151-14/+6
| | | | | formatting of rcsid. Remove unused #includes. Do not use memory after freeing it.
* Remove __progname. Make -f a no-op flag as stated in the man page. Removecharnier1997-06-111-20/+17
| | | | unused variables.
* Implement a -r option to fsdb(8), ``read/only''.joerg1997-04-151-43/+52
|
* Missing $Id$peter1997-03-131-1/+1
|
* Make this compile. Mostly use the new names for the ctime/atime/mtimepeter1997-03-131-1/+1
| | | | stamps in the inodes and call one of fsck's utility funcs with a new arg.
* Get rid of useless -f flag (though left for historical reasons).guido1996-09-301-2/+9
|
* Add chlen command so you can set the size of an inode. This was handyguido1996-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.
* ts_sec -> tv_secnate1996-09-201-2/+2
| | | | ts_nsec -> tv_nsec
* Commit FreeBSD-specific changes. Mainly to do with structure layoutpeter1995-11-031-8/+8
| | | | differences that we dont have.
* Whoops. RE-Import NetBSD's fsdb - I believe this was written by John Kohl.peter1995-11-031-0/+865
Obtained from: NetBSD
OpenPOWER on IntegriCloud