summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMatthew Macy <[email protected]>2020-04-09 09:59:31 -0700
committerGitHub <[email protected]>2020-04-09 09:59:31 -0700
commit8b27e08ed8c6d854ee3c398773407dfac24d7578 (patch)
tree9db66d4f1e9ffe9555ac9bd6132e1eee6e1c5a1b /include
parent68dde63d138882860109178f4ab0b7b1b1bb3cfd (diff)
Add separate field for indicating that spa is in middle of split
By default it's not possible to open a device already owned by an active vdev. It's necessary to make an exception to this for vdev split. The FreeBSD platform code will make an exception if spa_is splitting is set to to true. Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Ryan Moeller <[email protected]> Signed-off-by: Matt Macy <[email protected]> Closes #10178
Diffstat (limited to 'include')
-rw-r--r--include/sys/spa_impl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sys/spa_impl.h b/include/sys/spa_impl.h
index e8806dda9..6481d5397 100644
--- a/include/sys/spa_impl.h
+++ b/include/sys/spa_impl.h
@@ -216,6 +216,7 @@ struct spa {
spa_load_state_t spa_load_state; /* current load operation */
boolean_t spa_indirect_vdevs_loaded; /* mappings loaded? */
boolean_t spa_trust_config; /* do we trust vdev tree? */
+ boolean_t spa_is_splitting; /* in the middle of a split? */
spa_config_source_t spa_config_source; /* where config comes from? */
uint64_t spa_import_flags; /* import specific flags */
spa_taskqs_t spa_zio_taskq[ZIO_TYPES][ZIO_TASKQ_TYPES];