Merge commit 'refs/top-bases/linux-have-zvol' into linux-have-zvol
This commit is contained in:
commit
c9fe1e4762
|
@ -24,11 +24,11 @@ EOF
|
||||||
check_config() {
|
check_config() {
|
||||||
|
|
||||||
if [ ! -f ${ZPOOL_CONFIG} ]; then
|
if [ ! -f ${ZPOOL_CONFIG} ]; then
|
||||||
local NAME=`basename ${ZPOOL_CONFIG} .cfg`
|
local NAME=`basename ${ZPOOL_CONFIG} .sh`
|
||||||
ERROR="Unknown config '${NAME}', available configs are:\n"
|
ERROR="Unknown config '${NAME}', available configs are:\n"
|
||||||
|
|
||||||
for CFG in `ls ${TOPDIR}/scripts/zpool-config/`; do
|
for CFG in `ls ${TOPDIR}/scripts/zpool-config/`; do
|
||||||
local NAME=`basename ${CFG} .cfg`
|
local NAME=`basename ${CFG} .sh`
|
||||||
ERROR="${ERROR}${NAME}\n"
|
ERROR="${ERROR}${NAME}\n"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@ check_config() {
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
ZPOOL_CONFIG=zpool_config.cfg
|
ZPOOL_CONFIG=zpool_config.sh
|
||||||
ZPOOL_NAME=tank
|
ZPOOL_NAME=tank
|
||||||
ZPOOL_DESTROY=
|
ZPOOL_DESTROY=
|
||||||
|
|
||||||
|
@ -52,7 +52,7 @@ while getopts 'hvc:p:d' OPTION; do
|
||||||
VERBOSE=1
|
VERBOSE=1
|
||||||
;;
|
;;
|
||||||
c)
|
c)
|
||||||
ZPOOL_CONFIG=${TOPDIR}/scripts/zpool-config/${OPTARG}.cfg
|
ZPOOL_CONFIG=${TOPDIR}/scripts/zpool-config/${OPTARG}.sh
|
||||||
;;
|
;;
|
||||||
p)
|
p)
|
||||||
ZPOOL_NAME=${OPTARG}
|
ZPOOL_NAME=${OPTARG}
|
||||||
|
|
Loading…
Reference in New Issue