freebsd-nq/sbin
Xin LI a16baf37b9 The recomputation of file system summary at mount time can be a
very slow process, especially for large file systems that is just
recovered from a crash.

Since the summary is already re-sync'ed every 30 second, we will
not lag behind too much after a crash.  With this consideration
in mind, it is more reasonable to transfer the responsibility to
background fsck, to reduce the delay after a crash.

Add a new sysctl variable, vfs.ffs.compute_summary_at_mount, to
control this behavior.  When set to nonzero, we will get the
"old" behavior, that the summary is computed immediately at mount
time.

Add five new sysctl variables to adjust ndir, nbfree, nifree,
nffree and numclusters respectively.  Teach fsck_ffs about these
API, however, intentionally not to check the existence, since
kernels without these sysctls must have recomputed the summary
and hence no adjustments are necessary.

This change has eliminated the usual tens of minutes of delay of
mounting large dirty volumes.

Reviewed by:	mckusick
MFC After:	1 week
2005-02-20 08:02:15 +00:00
..
adjkerntz Expand *n't contractions. 2005-02-13 22:25:33 +00:00
atacontrol
atm Expand contractions. 2005-02-13 23:45:54 +00:00
badsect Expand *n't contractions. 2005-02-13 22:25:33 +00:00
bsdlabel
camcontrol Expand *n't contractions. 2005-02-13 22:25:33 +00:00
ccdconfig Sync program's usage() with manpage's SYNOPSIS. 2005-02-10 09:19:34 +00:00
clri
comcontrol Sort sections. 2005-01-18 10:09:38 +00:00
conscontrol Sync program's usage() with manpage's SYNOPSIS. 2005-02-10 09:19:34 +00:00
devd Sync program's usage() with manpage's SYNOPSIS. 2005-02-10 09:19:34 +00:00
devfs
dhclient Let bsd.prog.mk set SRCS and MAN to their default values. 2005-01-28 16:08:11 +00:00
dmesg WARNS=6 cleanup: 2005-01-17 13:56:46 +00:00
dump va_list style tweaks 2005-02-16 06:48:35 +00:00
dumpfs Sync program's usage() with manpage's SYNOPSIS. 2005-02-10 09:19:34 +00:00
dumpon Sort sections. 2005-01-18 10:09:38 +00:00
fdisk
fdisk_pc98
ffsinfo Sync program's usage() with manpage's SYNOPSIS. 2005-02-10 09:19:34 +00:00
fsck Sync program's usage() with manpage's SYNOPSIS. 2005-02-10 09:19:34 +00:00
fsck_ffs The recomputation of file system summary at mount time can be a 2005-02-20 08:02:15 +00:00
fsck_msdosfs Sync program's usage() with manpage's SYNOPSIS. 2005-02-10 09:39:51 +00:00
fsdb Reword a sentence to conform with our mdoc(7) style. 2005-02-12 23:23:53 +00:00
fsirand
gbde - Fixed description of the "destroy" command options. 2005-02-12 21:47:05 +00:00
geom Fix year in copyrights. 2005-02-16 22:19:13 +00:00
ggate Sort sections. 2005-01-18 10:09:38 +00:00
gpt
growfs Sort sections. 2005-01-18 10:09:38 +00:00
gvinum
idmapd Let bsd.prog.mk set SRCS and MAN to their default values. 2005-01-28 16:08:11 +00:00
ifconfig Change the ifr_media operation to only get its value and only set 2005-01-27 16:40:12 +00:00
init Sort sections. 2005-01-18 10:09:38 +00:00
ip6fw Expand *n't contractions. 2005-02-13 22:25:33 +00:00
ipf
ipfs Let bsd.prog.mk set SRCS and MAN to their default values. 2005-01-28 16:08:11 +00:00
ipfstat
ipfw Expand *n't contractions. 2005-02-13 22:25:33 +00:00
ipmon Let bsd.prog.mk set SRCS and MAN to their default values. 2005-01-28 16:08:11 +00:00
ipnat
kldconfig Sync program's usage() with manpage's SYNOPSIS. 2005-02-10 09:19:34 +00:00
kldload Added the EXIT STATUS section where appropriate. 2005-01-17 07:44:44 +00:00
kldstat Added the EXIT STATUS section where appropriate. 2005-01-17 07:44:44 +00:00
kldunload - Correctly spell MOD_QUIESCE 2005-02-09 22:06:16 +00:00
ldconfig Sync program's usage() with manpage's SYNOPSIS. 2005-02-10 09:19:34 +00:00
mca
md5 Added the EXIT STATUS section where appropriate. 2005-01-17 07:44:44 +00:00
mdconfig Sync program's usage() with manpage's SYNOPSIS. 2005-02-10 09:19:34 +00:00
mdmfs Sync program's usage() with manpage's SYNOPSIS. 2005-02-10 09:19:34 +00:00
mknod Sync program's usage() with manpage's SYNOPSIS. 2005-02-10 09:19:34 +00:00
mksnap_ffs
mount Sync program's usage() with manpage's SYNOPSIS. 2005-02-10 09:19:34 +00:00
mount_autofs spell "file system" correctly 2005-01-24 20:06:16 +00:00
mount_cd9660 Expand *n't contractions. 2005-02-13 22:25:33 +00:00
mount_ext2fs
mount_hpfs
mount_msdosfs Sync program's usage() with manpage's SYNOPSIS. 2005-02-10 09:19:34 +00:00
mount_nfs Sync program's usage() with manpage's SYNOPSIS. 2005-02-10 09:19:34 +00:00
mount_nfs4 Sync program's usage() with manpage's SYNOPSIS. 2005-02-10 09:19:34 +00:00
mount_ntfs Sync program's usage() with manpage's SYNOPSIS. 2005-02-10 09:19:34 +00:00
mount_nullfs Sync program's usage() with manpage's SYNOPSIS. 2005-02-10 09:19:34 +00:00
mount_std
mount_udf Sync program's usage() with manpage's SYNOPSIS. 2005-02-10 09:19:34 +00:00
mount_ufs
mount_umapfs Sync program's usage() with manpage's SYNOPSIS. 2005-02-10 09:19:34 +00:00
mount_unionfs Sync program's usage() with manpage's SYNOPSIS. 2005-02-10 09:19:34 +00:00
natd Eliminate macro calls inside literal displays. 2005-01-15 12:28:01 +00:00
newfs When creating a new FFS file system, the block size will indirectly 2005-02-20 06:33:18 +00:00
newfs_msdos Expand *n't contractions. 2005-02-13 22:25:33 +00:00
nfsiod Added the EXIT STATUS section where appropriate. 2005-01-17 07:44:44 +00:00
nos-tun Expand *n't contractions. 2005-02-13 22:25:33 +00:00
pfctl
pflogd
ping
ping6 Sync program's usage() with manpage's SYNOPSIS. 2005-02-10 09:19:34 +00:00
quotacheck Sync program's usage() with manpage's SYNOPSIS. 2005-02-10 09:19:34 +00:00
rcorder
reboot Sync program's usage() with manpage's SYNOPSIS. 2005-02-10 09:19:34 +00:00
recoverdisk
restore Expand *n't contractions. 2005-02-13 22:25:33 +00:00
route Expand *n't contractions. 2005-02-13 22:25:33 +00:00
routed Sort sections. 2005-01-18 10:09:38 +00:00
rtsol
savecore Sync program's usage() with manpage's SYNOPSIS. 2005-02-10 09:19:34 +00:00
sconfig
setkey Fixed the misplaced $FreeBSD$. 2005-02-09 18:07:17 +00:00
shutdown Use new style declarations instead of K&R ones. 2005-01-25 08:40:51 +00:00
slattach Sync program's usage() with manpage's SYNOPSIS. 2005-02-10 09:19:34 +00:00
spppcontrol Expand contractions. 2005-02-13 23:45:54 +00:00
startslip Sync program's usage() with manpage's SYNOPSIS. 2005-02-10 09:19:34 +00:00
sunlabel Fix grammar error. 2005-02-15 22:31:05 +00:00
swapon Sync program's usage() with manpage's SYNOPSIS. 2005-02-10 09:19:34 +00:00
sysctl Sync program's usage() with manpage's SYNOPSIS. 2005-02-10 09:19:34 +00:00
tunefs Expand *n't contractions. 2005-02-13 22:25:33 +00:00
umount Sync program's usage() with manpage's SYNOPSIS. 2005-02-10 09:19:34 +00:00
Makefile
Makefile.inc