freebsd-skq/sbin/fsck_ffs
delphij 50d65e6e8d Make background fsck based summary adjustments actually work by
initializing the sysctl mibs data before actually using them.

The original patchset (which is the actual version that is running
on my testboxes) have checked whether all of these sysctls and
refuses to do background fsck if we don't have them.  Kirk has
pointed out that refusing running fsck on old kernels is pointless,
as old kernels will recompute the summary at mount time, so I
have removed these checks.

Unfortunatelly, as the checks will initialize the mib values of
those sysctl's, and which are vital for the runtime summary
adjustment to work, we can not simply remove the check, which
will lead to problem when running background fsck over a dirty
volume.  Add these checks in a different way: give a warning rather
than refusing to work, and complain if the functionality is not
available when adjustments are necessary.

Noticed by:	A power failure at my lab
Pointy hat:	me
MFC After:	3 days
2005-03-07 08:42:49 +00:00
..
SMM.doc
dir.c
ea.c
fsck_ffs.8 Sync program's usage() with manpage's SYNOPSIS. 2005-02-10 09:19:34 +00:00
fsck.h Make background fsck based summary adjustments actually work by 2005-03-07 08:42:49 +00:00
fsutil.c
inode.c
main.c Sync program's usage() with manpage's SYNOPSIS. 2005-02-10 09:19:34 +00:00
Makefile
pass1.c
pass1b.c
pass2.c
pass3.c
pass4.c
pass5.c Make background fsck based summary adjustments actually work by 2005-03-07 08:42:49 +00:00
setup.c Make background fsck based summary adjustments actually work by 2005-03-07 08:42:49 +00:00
utilities.c