mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 09:41:03 -04:00
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
This commit is contained in:
parent
f02098e59c
commit
71fc5e11c7
1 changed files with 1 additions and 1 deletions
|
|
@ -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");
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue