summaryrefslogtreecommitdiffstats
path: root/sbin/fsdb
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* 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-202-8/+8
| | | | ts_nsec -> tv_nsec
* Add ${DPADD}, $Id$peter1996-09-021-0/+2
|
* Adjust relative paths in Makefile to ../sbin/fsck and ../../sys/ufs/ffspeter1995-11-241-2/+2
|
* Commit FreeBSD-specific changes. Mainly to do with structure layoutpeter1995-11-034-17/+19
| | | | differences that we dont have.
* Whoops. RE-Import NetBSD's fsdb - I believe this was written by John Kohl.peter1995-11-035-0/+1366
Obtained from: NetBSD
OpenPOWER on IntegriCloud