summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/fs/zfs/spa_misc.c
diff options
context:
space:
mode:
authorMatthew Ahrens <mahrens@delphix.com>2013-12-12 09:17:22 -0800
committerChristopher Siden <chris.siden@delphix.com>2013-12-12 09:17:22 -0800
commit8b36997aa24d9817807faa4efa301ac9c07a2b78 (patch)
tree35d0cbdd6f8f1b75ec680c6ebd89c306e0aa6cbf /usr/src/uts/common/fs/zfs/spa_misc.c
parent78f171005391b928aaf1642b3206c534ed644332 (diff)
downloadillumos-joyent-8b36997aa24d9817807faa4efa301ac9c07a2b78.tar.gz
4391 panic system rather than corrupting pool if we hit bug 4390
Reviewed by: Adam Leventhal <ahl@delphix.com> Reviewed by: Christopher Siden <christopher.siden@delphix.com> Approved by: Gordon Ross <gwr@nexenta.com>
Diffstat (limited to 'usr/src/uts/common/fs/zfs/spa_misc.c')
-rw-r--r--usr/src/uts/common/fs/zfs/spa_misc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr/src/uts/common/fs/zfs/spa_misc.c b/usr/src/uts/common/fs/zfs/spa_misc.c
index 27ea88cbb6..fa0658493e 100644
--- a/usr/src/uts/common/fs/zfs/spa_misc.c
+++ b/usr/src/uts/common/fs/zfs/spa_misc.c
@@ -247,6 +247,8 @@ int zfs_flags = 0;
* zfs_recover can be set to nonzero to attempt to recover from
* otherwise-fatal errors, typically caused by on-disk corruption. When
* set, calls to zfs_panic_recover() will turn into warning messages.
+ * This should only be used as a last resort, as it typically results
+ * in leaked space, or worse.
*/
int zfs_recover = 0;