aboutsummaryrefslogtreecommitdiff
path: root/sbin/fsck_ffs/fsck.h
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2005-03-07 08:42:49 +0000
committerXin LI <delphij@FreeBSD.org>2005-03-07 08:42:49 +0000
commitc0ed8991fb2a974afb1b21af67d351fdf13d5f5a (patch)
tree4a55cc21d650dd93da6eb7cdf52fd17aa3778ba7 /sbin/fsck_ffs/fsck.h
parentb0c2130963e6840bbda269b731ab078861d2989c (diff)
downloadsrc-c0ed8991fb2a974afb1b21af67d351fdf13d5f5a.tar.gz
src-c0ed8991fb2a974afb1b21af67d351fdf13d5f5a.zip
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
Notes
Notes: svn path=/head/; revision=143235
Diffstat (limited to 'sbin/fsck_ffs/fsck.h')
-rw-r--r--sbin/fsck_ffs/fsck.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sbin/fsck_ffs/fsck.h b/sbin/fsck_ffs/fsck.h
index 55a57bc6959f..32f9cfaa7eae 100644
--- a/sbin/fsck_ffs/fsck.h
+++ b/sbin/fsck_ffs/fsck.h
@@ -272,6 +272,7 @@ int bflag; /* location of alternate super block */
int debug; /* output debugging info */
int cvtlevel; /* convert to newer file system format */
int bkgrdcheck; /* determine if background check is possible */
+int bkgrdsumadj; /* whether the kernel have ability to adjust superblock summary */
char usedsoftdep; /* just fix soft dependency inconsistencies */
char preen; /* just fix normal inconsistencies */
char rerun; /* rerun fsck. Only used in non-preen mode */