aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/zpool-config/lo-faulty-raid10.sh
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2014-07-22 14:43:22 -0700
committerBrian Behlendorf <[email protected]>2014-07-25 11:58:31 -0700
commit093219a6b333d9e04dde3cbb282d262016ad5ef6 (patch)
treed91c6a8ddd3cfa950b7ea3c6e23cc56e04885d57 /scripts/zpool-config/lo-faulty-raid10.sh
parent1139491da702a160a2ea927d1d737a2cb45e51e8 (diff)
zpool-create.sh: allow features to be disabled
The zimport.sh script makes use of the zpool-create.sh script to construct test pools for importing with older versions of ZoL. It is desirable to have a way to disable all the features so new pools can be imported with older code. The simplest and most flexible way to achieve this was to merge the VERBOSE_FLAG and FORCE_FLAG in to a single ZPOOL_FLAGS variable. The contents of this variable will be used in the 'zpool create' allowing us to easily pass arbitrary flags. Signed-off-by: Brian Behlendorf <[email protected]> Signed-off-by: Prakash Surya <[email protected]> Closes #2524
Diffstat (limited to 'scripts/zpool-config/lo-faulty-raid10.sh')
-rw-r--r--scripts/zpool-config/lo-faulty-raid10.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/zpool-config/lo-faulty-raid10.sh b/scripts/zpool-config/lo-faulty-raid10.sh
index 0a3720ae1..1a523ec45 100644
--- a/scripts/zpool-config/lo-faulty-raid10.sh
+++ b/scripts/zpool-config/lo-faulty-raid10.sh
@@ -63,9 +63,9 @@ zpool_create() {
fi
done
- msg ${ZPOOL} create ${FORCE_FLAG} ${ZPOOL_NAME} \
+ msg ${ZPOOL} create ${ZPOOL_FLAGS} ${ZPOOL_NAME} \
mirror ${MDDEVICES_M1} mirror ${MDDEVICES_M2}
- ${ZPOOL} create ${FORCE_FLAG} ${ZPOOL_NAME} \
+ ${ZPOOL} create ${ZPOOL_FLAGS} ${ZPOOL_NAME} \
mirror ${MDDEVICES_M1} mirror ${MDDEVICES_M2} || \
(destroy_md_devices "${MDDEVICES}" && \
destroy_loop_devices "${LODEVICES}" && exit 1)