aboutsummaryrefslogtreecommitdiff
path: root/sbin/fsdb
Commit message (Collapse)AuthorAgeFilesLines
* Sort sections.Ruslan Ermilov2005-01-181-9/+9
| | | | Notes: svn path=/head/; revision=140415
* Make fsck WARNS=2 clean.Lukas Ertl2004-10-092-17/+17
| | | | Notes: svn path=/head/; revision=136322
* Downgrade WARNS level until GCC 3.4.2 warning are fixed.Alexander Kabaev2004-07-281-0/+1
| | | | Notes: svn path=/head/; revision=132763
* Mechanically kill hard sentence breaks.Ruslan Ermilov2004-07-021-9/+18
| | | | Notes: svn path=/head/; revision=131488
* Fixed style of DPADD and LDADD assignments as per style.Makefile(5).Ruslan Ermilov2004-02-051-2/+2
| | | | Notes: svn path=/head/; revision=125503
* Make this WARNS=2 clean byJohan Karlsson2003-11-133-8/+10
| | | | | | | | | | | | | - #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
* Backout Rev. 1.24Christian Brueffer2003-08-301-1/+1
| | | | | | | English lessons provided by: jhb Notes: svn path=/head/; revision=119569
* Grammar fixChristian Brueffer2003-08-291-1/+1
| | | | Notes: svn path=/head/; revision=119564
* I forgot fsdb was still sharing files with fsck.Poul-Henning Kamp2002-09-161-1/+1
| | | | Notes: svn path=/head/; revision=103402
* s/filesystem/file system/g as discussed on -developersTom Rhodes2002-08-212-11/+11
| | | | Notes: svn path=/head/; revision=102231
* Warning cleanup.Poul-Henning Kamp2002-07-302-3/+3
| | | | | | | Format changes by peter Notes: svn path=/head/; revision=100935
* The .Nm utilityPhilippe Charnier2002-07-061-4/+6
| | | | Notes: svn path=/head/; revision=99501
* This commit adds basic support for the UFS2 filesystem. The UFS2Kirk McKusick2002-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> Notes: svn path=/head/; revision=98542
* more file system > filesystemTom Rhodes2002-05-162-9/+9
| | | | Notes: svn path=/head/; revision=96707
* Match prototypes to functions over in fsck_ffs.Poul-Henning Kamp2002-05-141-3/+3
| | | | Notes: svn path=/head/; revision=96570
* o __P removal.Warner Losh2002-03-213-71/+41
| | | | | | | | | 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
* This sounds better.Ruslan Ermilov2002-03-151-1/+1
| | | | Notes: svn path=/head/; revision=92358
* Something i always wanted to see: add a function to print the list ofJoerg Wunsch2002-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 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
* 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-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. Notes: svn path=/head/; revision=89791
* Default to WARNS=2.David E. O'Brien2001-12-041-0/+1
| | | | | | | | | Binary builds that cannot handle this must explicitly set WARNS=0. Reviewed by: mike Notes: svn path=/head/; revision=87325
* 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
* Remove whitespace at EOL.Dima Dorfman2001-07-151-8/+8
| | | | Notes: svn path=/head/; revision=79754
* mdoc(7) police: removed HISTORY info from the .Os call.Ruslan Ermilov2001-07-101-1/+1
| | | | Notes: svn path=/head/; revision=79530
* 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
* - Backout botched attempt to introduce MANSECT feature.Ruslan Ermilov2001-03-261-0/+1
| | | | | | | - MAN[1-9] -> MAN. Notes: svn path=/head/; revision=74815
* 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
* Set the default manual section for sbin/ to 8.Ruslan Ermilov2001-03-201-1/+0
| | | | Notes: svn path=/head/; revision=74531
* mdoc(7) police: split punctuation characters + misc fixes.Ruslan Ermilov2001-02-011-1/+1
| | | | Notes: svn path=/head/; revision=71895
* Prepare for mdoc(7)NG.Ruslan Ermilov2001-01-161-1/+1
| | | | Notes: svn path=/head/; revision=71099
* mdoc(7) police: use the new features of the Nm macro.Ruslan Ermilov2000-11-201-1/+1
| | | | Notes: svn path=/head/; revision=68960
* Avoid use of direct troff requests in mdoc(7) manual pages.Ruslan Ermilov2000-11-101-4/+3
| | | | Notes: svn path=/head/; revision=68575
* Reviewed by: rwatson, bpAdrian Chadd2000-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. Notes: svn path=/head/; revision=66868
* Remove unused includes.Jeroen Ruigrok van der Werven2000-05-012-2/+0
| | | | Notes: svn path=/head/; revision=59869
* Fix various man pages to stop abusing the .Bx macro to generateMike Pritchard2000-01-231-2/+2
| | | | | | | | the strings "FreeBSD" and "NetBSD". Use the .Fx or .Nx macro instead. Notes: svn path=/head/; revision=56407
* 'clri' takes an argument.Bill Fumerola1999-12-201-2/+3
| | | | | | | Reviewed by: phk Notes: svn path=/head/; revision=54872
* $Id$ -> $FreeBSD$Peter Wemm1999-08-285-5/+5
| | | | 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
* Correctly ref editline(3).Guy Helmer1999-04-131-8/+4
| | | | | | | PR: docs/10973 Notes: svn path=/head/; revision=45641
* 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
* 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-153-43/+33
| | | | | | | | formatting of rcsid. Remove unused #includes. Do not use memory after freeing it. Notes: svn path=/head/; revision=37001
* opt_diagnostic.h isn't needed anymore.John Hay1998-02-061-8/+3
| | | | Notes: svn path=/head/; revision=33139
* fsdb and fsck use the ffs code which needs opt_diagnostic.h.John Hay1998-02-051-3/+8
| | | | Notes: svn path=/head/; revision=33118
* 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