diff options
author | iedowse <iedowse@FreeBSD.org> | 2001-10-25 22:55:59 +0000 |
---|---|---|
committer | iedowse <iedowse@FreeBSD.org> | 2001-10-25 22:55:59 +0000 |
commit | 6c4623e897fe91440f283809edc5792e88cb20e1 (patch) | |
tree | 98bcef8a0b00417d1ba07dee53cfc0ad992a1eba /sys | |
parent | c428dfdefb9b7fbf3edbaf5efad4918801a356cd (diff) | |
download | FreeBSD-src-6c4623e897fe91440f283809edc5792e88cb20e1.zip FreeBSD-src-6c4623e897fe91440f283809edc5792e88cb20e1.tar.gz |
Default to not performing ufs_dirhash's extensive directory-block
sanity check after every directory modification. This check can be
re-enabled at any time by setting the sysctl "vfs.ufs.dirhash_docheck"
to 1.
This group of sanity tests was there to ensure that any UFS_DIRHASH
bugs could be caught by a panic before a potentially corrupted
directory block would be written to disk. It has served its main
purpose now, so disable it in the interest of performance.
MFC after: 1 week
Diffstat (limited to 'sys')
-rw-r--r-- | sys/ufs/ufs/ufs_dirhash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/ufs/ufs/ufs_dirhash.c b/sys/ufs/ufs/ufs_dirhash.c index 38359c2..afd8222 100644 --- a/sys/ufs/ufs/ufs_dirhash.c +++ b/sys/ufs/ufs/ufs_dirhash.c @@ -72,7 +72,7 @@ SYSCTL_INT(_vfs_ufs, OID_AUTO, dirhash_maxmem, CTLFLAG_RW, &ufs_dirhashmaxmem, static int ufs_dirhashmem; SYSCTL_INT(_vfs_ufs, OID_AUTO, dirhash_mem, CTLFLAG_RD, &ufs_dirhashmem, 0, "current dirhash memory usage"); -static int ufs_dirhashcheck = 1; +static int ufs_dirhashcheck = 0; SYSCTL_INT(_vfs_ufs, OID_AUTO, dirhash_docheck, CTLFLAG_RW, &ufs_dirhashcheck, 0, "enable extra sanity tests"); |