summaryrefslogtreecommitdiffstats
path: root/sbin/fsck/main.c
Commit message (Collapse)AuthorAgeFilesLines
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Cosmetic and documentation changes brought from earlier FreeBSD versions.julian1998-12-031-3/+12
| | | | (e.g. RCS Id:)
* Reviewed by: Don Lewis <Don.Lewis@tsc.tdk.com>julian1998-12-031-28/+31
| | | | | | | | | | | | Submitted by: Kirk McKusick <mckusick@McKusick.COM> Obtained from: Mckusick, BSDI and a host of others This exactly matches Kirks sources imported under the Tag MCKUSICK2. These are as supplied by kirk with one small change needed to compile under freeBSD. Some FreeBSD patches will be added back, though many have been added to Kirk's sources already.
* For large filesystems you can run past default resource limits causingmjacob1998-11-051-1/+7
| | | | | | | fsck to exit unhappily. Fix this by doing a getrlimit/setrlimit for RLIMIT_DATA. I made the same fix in NetBSD. Reviewed by: dg@root.com
* Correct use of .Nm. Add rcsid. Remove unused #includes. Use err(3).charnier1998-06-151-3/+1
|
* Reviewed by: dyson@freebsd.org (john Dyson), dg@root.com (david greenman)julian1998-03-081-8/+14
| | | | | Submitted by: Kirk McKusick (mcKusick@mckusick.com) Obtained from: WHistle development tree
* Fixed style bugs in the printing of statistics after preening. Usebde1997-12-201-15/+16
| | | | | | | | | | | floating point better in the percentage calculation there to avoid overflow when there are more than about 20 million fragments. Start using floating point in the other percentage calculation to avoid overflow when there are more than about 2 million fragments. Fixed printf format strings. Converted sccsid to rcsid.
* Don't attempt to print the statistics for a "clean" preened filesystembde1997-12-201-1/+1
| | | | | | | | | | | when there isn't even a filesystem. Attempting to print them tended to cause SIGSEGV or SIGFPE depending on how far setup() got before it returned 0. This was broken in the previous revision by removing a return statement that the previous case depended on falling into. PR: 4840 (fixed by this commit) PR: 2537 (possibly fixed by Lite2 merge and later changes. setup() does more checking now)
* Kill the Lite2 early "filesystem clean abort" check and go back topeter1997-03-131-4/+0
| | | | | | | | 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).
* Finished (?) merging with Lite2: cleaned up #include mess.bde1997-03-121-7/+1
| | | | Updated getopt() usage.
* Merge from Lite2. Note that Lite2 has it's own filesystem clean checkpeter1997-03-111-30/+50
| | | | | skipping code that overrides ours sooner. One should be eliminated, but for now it works.
* Fix the case where fsck would not see sparse directories and the kernel wouldguido1996-10-081-0/+2
| | | | | | | panic. If such a thing is fixed fsck needs a rerun (and bugs the user to do so). Reviewed by: Kirk McKusick
* Remove unneeded ctype.hache1995-10-231-1/+0
|
* Remove trailing whitespace.rgrimes1995-05-301-2/+2
|
* Submitted by: phk, added to by bdebde1995-04-021-8/+14
| | | | Fix all the warnings from `gcc -Wall'.
* Better support for clean bit: prompt the user to fix it if it's wrongdg1994-08-211-2/+1
| | | | when not preening, and indicate if it was fixed when preening.
* Added filesystem clean bit support. This only affects fsck during adg1994-08-201-2/+20
| | | | | | | 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.
* BSD 4.4 Lite sbin Sourcesrgrimes1994-05-261-0/+318
Note: XNSrouted and routed NOT imported here, they shall be imported with usr.sbin.
OpenPOWER on IntegriCloud