1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-25 11:37:56 +00:00
freebsd/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 Distinguish between TCQ and NCQ type of tagged queing. 2004-09-15 11:22:05 +00:00
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 Scheduled mdoc(7) sweep. 2005-01-10 16:17:34 +00:00
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 Remove a useless use of cat, strip overzealous punctuation, and 2004-11-06 11:16:56 +00:00
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 Add 0xbf as new partition id for Solaris. 2004-11-10 07:48:29 +00:00
fdisk_pc98 Merged from src/sbin/fdisk/fdisk.c revision 1.75. 2004-10-24 12:05:10 +00:00
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 Avoid casts as lvalues. 2004-07-28 05:59:22 +00:00
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 Scheduled mdoc(7) sweep. 2005-01-10 16:17:34 +00:00
growfs Sort sections. 2005-01-18 10:09:38 +00:00
gvinum Start the dreaded NOFOO -> NO_FOO conversion. 2004-12-21 08:47:35 +00:00
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 Link a couple of missing manpages 2005-01-07 09:22:02 +00:00
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 Start the dreaded NOFOO -> NO_FOO conversion. 2004-12-21 08:47:35 +00:00
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 Make sure we don't pass garbage to the kernel. 2004-12-08 11:54:50 +00:00
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 Fix the mount(8) status reporting, now that MNT_NODEV is a no-op (zero). 2004-11-29 09:35:01 +00:00
mount_udf Sync program's usage() with manpage's SYNOPSIS. 2005-02-10 09:19:34 +00:00
mount_ufs NOSHARED -> NO_SHARED 2004-12-21 09:59:45 +00:00
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 Remove -I from CFLAGS. This splipped in with the 3.5 import (as I was 2004-10-03 06:19:22 +00:00
pflogd Fixed misspelling of DPADD. 2004-10-24 14:25:53 +00:00
ping o Store timestamp in network byte order. 2004-09-30 07:35:56 +00:00
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 Deal with harmful leading whitespace. 2004-07-02 18:37:52 +00:00
reboot Sync program's usage() with manpage's SYNOPSIS. 2005-02-10 09:19:34 +00:00
recoverdisk Start the dreaded NOFOO -> NO_FOO conversion. 2004-12-21 08:47:35 +00:00
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 Start the dreaded NOFOO -> NO_FOO conversion. 2004-12-21 08:47:35 +00:00
savecore Sync program's usage() with manpage's SYNOPSIS. 2005-02-10 09:19:34 +00:00
sconfig Fix typos. 2004-12-30 01:48:12 +00:00
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 NOINET6 -> NO_INET6 2004-12-21 10:49:29 +00:00
Makefile.inc NOSHARED -> NO_SHARED 2004-12-21 09:59:45 +00:00