]> git.proxmox.com Git - mirror_zfs-debian.git/blobdiff - module/zfs/spa_misc.c
Illumos #1051: zfs should handle imbalanced luns
[mirror_zfs-debian.git] / module / zfs / spa_misc.c
index 487a76d71310e9aaa36868f2c8bc2e48935ef7b1..e4e0c35f01df4cc3efbbaabf9532b1cdf2f1c864 100644 (file)
@@ -20,6 +20,7 @@
  */
 /*
  * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011 by Delphix. All rights reserved.
  */
 
 #include <sys/zfs_context.h>
@@ -1680,6 +1681,12 @@ spa_scan_get_stats(spa_t *spa, pool_scan_stat_t *ps)
        return (0);
 }
 
+boolean_t
+spa_debug_enabled(spa_t *spa)
+{
+       return (spa->spa_debug);
+}
+
 #if defined(_KERNEL) && defined(HAVE_SPL)
 /* Namespace manipulation */
 EXPORT_SYMBOL(spa_lookup);