aboutsummaryrefslogtreecommitdiff
path: root/sbin/fsck_ifs
Commit message (Collapse)AuthorAgeFilesLines
* patch up some "int *" vs. "time_t *" (long) mismatches. They could bePeter Wemm1997-03-181-2/+4
| | | | | | | nasty if sizeof(int) != sizeof(long). Notes: svn path=/head/; revision=24002
* Restore check for ridiculous directory sizes.Peter Wemm1997-03-181-2/+2
| | | | Notes: svn path=/head/; revision=23999
* Kill the Lite2 early "filesystem clean abort" check and go back toPeter Wemm1997-03-132-8/+6
| | | | | | | | | | | something closer to how we used to do it. The Lite2 way is to check the "fsclean" flag in the superblock and stop there if so (during preen). We now do the various superblock sanity checks that we used to do before since it's cheap. We now get the filesystem state summary again instead of "FILESYSTEM CLEAN; CHECKING SKIPPED" (or whatever). Notes: svn path=/head/; revision=23844
* Finished (?) merging with Lite2: cleaned up #include mess.Bruce Evans1997-03-124-10/+4
| | | | Notes: svn path=/head/; revision=23799
* Finished (?) merging with Lite2: cleaned up #include mess.Bruce Evans1997-03-122-14/+11
| | | | | | | Fixed style bugs in FreeBSD changes. Notes: svn path=/head/; revision=23798
* Finished (?) merging with Lite2: cleaned up #include mess and fixed aBruce Evans1997-03-121-3/+1
| | | | | | | | | style bug. Removed a redundant declaration. Notes: svn path=/head/; revision=23797
* Finished (?) merging with Lite2: cleaned up #include mess.Bruce Evans1997-03-121-3/+2
| | | | | | | Fixed misformatting in a comment. Notes: svn path=/head/; revision=23796
* Finished (?) merging with Lite2: cleaned up #include mess.Bruce Evans1997-03-121-7/+1
| | | | | | | Updated getopt() usage. Notes: svn path=/head/; revision=23795
* Restored lost reference to fsdb(8).Bruce Evans1997-03-121-1/+2
| | | | | | | Fixed weird quoting of $Id$. Notes: svn path=/head/; revision=23794
* Merge from Lite2. Note that Lite2 has it's own filesystem clean checkPeter Wemm1997-03-1115-464/+613
| | | | | | | | skipping code that overrides ours sooner. One should be eliminated, but for now it works. Notes: svn path=/head/; revision=23675
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-221-1/+1
| | | | Notes: svn path=/head/; revision=22990
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-141-1/+1
| | | | | | | | | | | 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. Notes: svn path=/head/; revision=21673
* Sort cross references.Wolfram Schneider1997-01-131-1/+2
| | | | Notes: svn path=/head/; revision=21635
* Submitted by: Archie@whistle.comJulian Elischer1996-11-131-1/+9
| | | | | | | clear the fmod flag if it's set. Notes: svn path=/head/; revision=19702
* Don't give up just because we cant find the blkdev that correspondsPoul-Henning Kamp1996-10-271-2/+3
| | | | | | | to the name given as a chardev. Notes: svn path=/head/; revision=19212
* Allow the specification of a mountpoint, and resolve it s disk deviceJoerg Wunsch1996-10-251-1/+16
| | | | | | | | | | | using the fstab. Closes PR bin/129. Submitted by: jmg@nike.efn.org (John-Mark Gurney) Notes: svn path=/head/; revision=19185
* Fix the case where fsck would not see sparse directories and the kernel wouldGuido van Rooij1996-10-084-1/+64
| | | | | | | | | | panic. If such a thing is fixed fsck needs a rerun (and bugs the user to do so). Reviewed by: Kirk McKusick Notes: svn path=/head/; revision=18808
* ts_sec -> tv_secNate Williams1996-09-201-2/+2
| | | | | | | ts_nsec -> tv_nsec Notes: svn path=/head/; revision=18405
* Don't use __dead or __pure in user code. They were obfuscationsBruce Evans1996-09-142-4/+4
| | | | | | | | | for gcc >= 2.5 and no-ops for gcc >= 2.6. Converted to use __dead2 or __pure2 where it wasn't already done, except in math.h where use of __pure was mostly wrong. Notes: svn path=/head/; revision=18286
* From: Terry Lambert <terry@lambert.org>Nate Williams1996-05-091-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Subject: Fix for annoying fsck bug Date: Wed, 24 Jan 1996 13:33:29 -0700 (MST) The following small diff fixes the annoying fsck bug that causes it to need to be run twice to end up with correct reference counts for inodes for directories that had subdirectories relocated into the lost+found directory. I found the need to rerun *extremely* annoying. This fix causes the count to be correctly adjusted later in pass 4 by correctly stating the parent reference count. Note that the parent reference count is incremented when the directory entry is made (for ".."), but is not really there in the case of a directory that does not make an entry in its parent dir. This can be tested by waiting for the inode sync after cd'ing from a shell into a test fs. Then you "mkdir xxx yyy zzz", wait a second, and hit the machine reset button. Reviewed by: nate (Tested lots of crashes :) Submitted by: Terry Lambert <terry@lambert.org> Notes: svn path=/head/; revision=15699
* Correct some man page cross references and some fileMike Pritchard1996-02-051-1/+0
| | | | | | | locations. Notes: svn path=/head/; revision=13922
* Remove unneeded ctype.hAndrey A. Chernov1995-10-232-2/+0
| | | | Notes: svn path=/head/; revision=11750
* Remove trailing whitespace.Rodney W. Grimes1995-05-309-16/+16
| | | | Notes: svn path=/head/; revision=8871
* Update declaration to match the change made to dir.c a few hours ago.Bruce Evans1995-04-021-1/+1
| | | | Notes: svn path=/head/; revision=7601
* Submitted by: Philippe Charnier <charnier@lirmm.fr>, distilled by bdeBruce Evans1995-04-022-2/+3
| | | | | | | Fix a couple more bogus types that aren't reported by `gcc -Wall'. Notes: svn path=/head/; revision=7586
* Submitted by: phk, added to by bdeBruce Evans1995-04-0213-71/+257
| | | | | | | Fix all the warnings from `gcc -Wall'. Notes: svn path=/head/; revision=7585
* Remove reference to fsdb(8). We don't have it.Poul-Henning Kamp1995-03-171-1/+0
| | | | Notes: svn path=/head/; revision=7106
* Slight change of wording on clean flag not set message to appease someDavid Greenman1995-02-151-1/+1
| | | | | | | complaints. Notes: svn path=/head/; revision=6405
* >The fix for the missing ".." in the root directory is enclosed below.David Greenman1995-02-151-2/+5
| | | | | | | Submitted by: Kirk McKusick Notes: svn path=/head/; revision=6404
* Don't allow the alternate superblock block number for one file systemBruce Evans1995-02-091-0/+2
| | | | | | | to apply to others (except when it is given on the command line). Notes: svn path=/head/; revision=6280
* Woops, last patch was by Wolfgang Solfrank.David Greenman1994-09-091-1/+1
| | | | Notes: svn path=/head/; revision=2605
* Two fixes from the NetBSD group (Charles Hannum):David Greenman1994-09-092-7/+15
| | | | | | | | | | 1) dir.c: get byte order right in mkentry() 2) pass1.c: When doing -c2 conversion, do secsize reads for a symlink - not doing so was causing the conversion to fail because the device driver can't deal with short reads. Notes: svn path=/head/; revision=2603
* Better support for clean bit: prompt the user to fix it if it's wrongDavid Greenman1994-08-212-2/+10
| | | | | | | when not preening, and indicate if it was fixed when preening. Notes: svn path=/head/; revision=2179
* Added filesystem clean bit support. This only affects fsck during aDavid Greenman1994-08-203-2/+28
| | | | | | | | | | preen (-p), and in that case the filesystem is skipped if it is clean. A new flag "-f" for 'force' has been added which basically gives back the old behavior of checking all the filesystems all the time. This very closely models the behavior of SunOS and Ultrix. Notes: svn path=/head/; revision=2153
* Convert to our man installation style. Also fixed long-standing bugGarrett Wollman1994-08-051-1/+1
| | | | | | | | in `fastboot'/`fasthalt' in which the interpreter would hang around after `reboot' or `halt' is run, causing an irritating ``Killed'' message. Notes: svn path=/head/; revision=1855
* Fixed so that it can grok old style "fastlinks".David Greenman1994-08-022-2/+2
| | | | Notes: svn path=/head/; revision=1820
* BSD 4.4 Lite sbin SourcesRodney W. Grimes1994-05-2615-0/+4809
Note: XNSrouted and routed NOT imported here, they shall be imported with usr.sbin. Notes: svn path=/head/; revision=1558