cvs commit: src/sbin/fsck_ffs fsck.h pass5.c setup.c

Xin LI delphij at FreeBSD.org
Mon Mar 7 08:42:51 GMT 2005


delphij     2005-03-07 08:42:49 UTC

  FreeBSD src repository

  Modified files:
    sbin/fsck_ffs        fsck.h pass5.c setup.c 
  Log:
  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
  
  Revision  Changes    Path
  1.36      +1 -0      src/sbin/fsck_ffs/fsck.h
  1.42      +5 -5      src/sbin/fsck_ffs/pass5.c
  1.49      +18 -0     src/sbin/fsck_ffs/setup.c


More information about the cvs-src mailing list