summaryrefslogtreecommitdiffstats
path: root/module/zfs/zfs_debug.c
diff options
context:
space:
mode:
authorMatthew Ahrens <[email protected]>2013-08-12 12:53:33 -0400
committerBrian Behlendorf <[email protected]>2013-11-05 13:18:26 -0800
commit78e2739d3c9e433c92cd1623a510edb2c83a97d9 (patch)
tree19dace5b74bacbf449c49812a09409ca809ef0bb /module/zfs/zfs_debug.c
parent2517c8ee08ef21ba112c00a94070302cdca04a58 (diff)
26126 panic system rather than corrupting pool if we hit bug 26100
References: delphix/delphix-os@931c8aaab74b6412933d299890894262e2ef8380 Ported-by: Richard Yao <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes #1650
Diffstat (limited to 'module/zfs/zfs_debug.c')
-rw-r--r--module/zfs/zfs_debug.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/module/zfs/zfs_debug.c b/module/zfs/zfs_debug.c
index cd83e2392..55a18e839 100644
--- a/module/zfs/zfs_debug.c
+++ b/module/zfs/zfs_debug.c
@@ -41,6 +41,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;