summaryrefslogtreecommitdiffstats
path: root/sbin/fsdb
Commit message (Collapse)AuthorAgeFilesLines
* I forgot fsdb was still sharing files with fsck.phk2002-09-161-1/+1
|
* s/filesystem/file system/g as discussed on -developerstrhodes2002-08-212-11/+11
|
* Warning cleanup.phk2002-07-302-3/+3
| | | | Format changes by peter
* The .Nm utilitycharnier2002-07-061-4/+6
|
* This commit adds basic support for the UFS2 filesystem. The UFS2mckusick2002-06-213-68/+117
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-162-9/+9
|
* Match prototypes to functions over in fsck_ffs.phk2002-05-141-3/+3
|
* o __P removal.imp2002-03-213-71/+41
| | | | | | 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?)
* This sounds better.ru2002-03-151-1/+1
|
* Something i always wanted to see: add a function to print the list ofjoerg2002-01-264-19/+164
| | | | | | | | 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
* 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-253-3/+33
| | | | | | | | | | | 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.
* Default to WARNS=2.obrien2001-12-041-0/+1
| | | | | | Binary builds that cannot handle this must explicitly set WARNS=0. Reviewed by: mike
* 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
|
* Remove whitespace at EOL.dd2001-07-151-8/+8
|
* mdoc(7) police: removed HISTORY info from the .Os call.ru2001-07-101-1/+1
|
* 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.
* - Backout botched attempt to introduce MANSECT feature.ru2001-03-261-0/+1
| | | | - MAN[1-9] -> MAN.
* 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>
* Set the default manual section for sbin/ to 8.ru2001-03-201-1/+0
|
* mdoc(7) police: split punctuation characters + misc fixes.ru2001-02-011-1/+1
|
* Prepare for mdoc(7)NG.ru2001-01-161-1/+1
|
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-201-1/+1
|
* Avoid use of direct troff requests in mdoc(7) manual pages.ru2000-11-101-4/+3
|
* Reviewed by: rwatson, bpadrian2000-10-091-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Approved by: rwatson Obtained from: NetBSD source tree Second part of the fsck wrappers commit. This commit enables the new fsck code (removing the fsck/* code and replacing it with the netbsd fsck wrapper code), and enabling some FFS-based utilities to compile. Details: * quotacheck, fsdb required modification to use the fsck_ffs/ code rather than fsck/ . This might change later since quotacheck requires preen.c which should exist in fsck/ rather than fsck_ffs/ * src/Makefile has fsck_ffs added to it so it it built as part of the tree now * share/doc/smm/03.fsck/ uses the SMM.doc/ stuff from fsck_ffs, not fsck. I've tested this, and it shouldn't require any changes on your machine. The fsck wrapper reads /etc/fsck and is command-line-compatible enough to not require rc changes (well, most changes unless you want to do anything nifty by specifying the fs types explicityly, read the man page if you want further details on what it can do.) This now allows us to support multiple filesystem types during bootup.
* Remove unused includes.asmodai2000-05-012-2/+0
|
* Fix various man pages to stop abusing the .Bx macro to generatempp2000-01-231-2/+2
| | | | | the strings "FreeBSD" and "NetBSD". Use the .Fx or .Nx macro instead.
* 'clri' takes an argument.billf1999-12-201-2/+3
| | | | Reviewed by: phk
* $Id$ -> $FreeBSD$peter1999-08-285-5/+5
|
* 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
* Correctly ref editline(3).ghelmer1999-04-131-8/+4
| | | | PR: docs/10973
* 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
* Fixed printf format errors.bde1998-06-281-2/+2
|
* Correct use of .Nm. Use .Bl/.El for enumerating options. Use .An. Correctcharnier1998-06-153-43/+33
| | | | | formatting of rcsid. Remove unused #includes. Do not use memory after freeing it.
* opt_diagnostic.h isn't needed anymore.jhay1998-02-061-8/+3
|
* fsdb and fsck use the ffs code which needs opt_diagnostic.h.jhay1998-02-051-3/+8
|
* 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-153-45/+63
|
* Fixed bogus casts from (int32_t *) to (time_t *).bde1997-03-131-4/+8
|
* Missing $Id$peter1997-03-133-2/+4
|
* Make this compile. Mostly use the new names for the ctime/atime/mtimepeter1997-03-132-7/+7
| | | | stamps in the inodes and call one of fsck's utility funcs with a new arg.
* Revert $FreeBSD$ to $Id$peter1997-02-222-2/+2
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-142-2/+2
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Sort cross references.wosch1997-01-131-2/+4
|
* Get rid of useless -f flag (though left for historical reasons).guido1996-09-302-3/+15
|
OpenPOWER on IntegriCloud