MFp4: Allow to set zfs_recover via vfs.zfs.recover from /boot/loader.conf.

This commit is contained in:
pjd 2007-04-10 12:54:19 +00:00
parent adf9b82198
commit 481ae46b8b
2 changed files with 8 additions and 0 deletions

View File

@ -193,6 +193,10 @@ int zfs_flags = 0;
* set, calls to zfs_panic_recover() will turn into warning messages.
*/
int zfs_recover = 0;
SYSCTL_DECL(_vfs_zfs);
TUNABLE_INT("vfs.zfs.recover", &zfs_recover);
SYSCTL_INT(_vfs_zfs, OID_AUTO, recover, CTLFLAG_RDTUN, &zfs_recover, 0,
"Try to recover from otherwise-fatal errors.");
#define SPA_MINREF 5 /* spa_refcnt for an open-but-idle pool */

View File

@ -193,6 +193,10 @@ int zfs_flags = 0;
* set, calls to zfs_panic_recover() will turn into warning messages.
*/
int zfs_recover = 0;
SYSCTL_DECL(_vfs_zfs);
TUNABLE_INT("vfs.zfs.recover", &zfs_recover);
SYSCTL_INT(_vfs_zfs, OID_AUTO, recover, CTLFLAG_RDTUN, &zfs_recover, 0,
"Try to recover from otherwise-fatal errors.");
#define SPA_MINREF 5 /* spa_refcnt for an open-but-idle pool */