Revert changes which don't belong on linux-configure-branch.
This commit is contained in:
parent
c24113eaa9
commit
ecb8603d26
|
@ -17,24 +17,18 @@ AC_DEFUN([ZFS_AC_DEBUG], [
|
||||||
*) AC_MSG_RESULT([Error!])
|
*) AC_MSG_RESULT([Error!])
|
||||||
AC_MSG_ERROR([Bad value "$enableval" for --enable-debug]) ;;
|
AC_MSG_ERROR([Bad value "$enableval" for --enable-debug]) ;;
|
||||||
esac ]
|
esac ]
|
||||||
)
|
)
|
||||||
if test "$zfs_ac_debug" = yes; then
|
if test "$zfs_ac_debug" = yes; then
|
||||||
AC_MSG_RESULT([yes])
|
AC_MSG_RESULT([yes])
|
||||||
AC_DEFINE([DEBUG], [1],
|
|
||||||
[Define to 1 to enable debug tracing])
|
|
||||||
KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG "
|
KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG "
|
||||||
HOSTCFLAGS="${HOSTCFLAGS} -DDEBUG "
|
HOSTCFLAGS="${HOSTCFLAGS} -DDEBUG "
|
||||||
USERDEBUG="-DDEBUG"
|
|
||||||
else
|
else
|
||||||
AC_MSG_RESULT([no])
|
AC_MSG_RESULT([no])
|
||||||
AC_DEFINE([NDEBUG], [1],
|
AC_DEFINE([NDEBUG], [1],
|
||||||
[Define to 1 to disable debug tracing])
|
[Define to 1 to disable debug tracing])
|
||||||
KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG "
|
KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG "
|
||||||
HOSTCFLAGS="${HOSTCFLAGS} -DNDEBUG "
|
HOSTCFLAGS="${HOSTCFLAGS} -DNDEBUG "
|
||||||
USERDEBUG="-DNDEBUG"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_SUBST(USERDEBUG)
|
|
||||||
])
|
])
|
||||||
|
|
||||||
AC_DEFUN([ZFS_AC_CONFIG_SCRIPT], [
|
AC_DEFUN([ZFS_AC_CONFIG_SCRIPT], [
|
||||||
|
|
|
@ -33,7 +33,6 @@ DESCRIPTION:
|
||||||
OPTIONS:
|
OPTIONS:
|
||||||
-h Show this message
|
-h Show this message
|
||||||
-v Verbose
|
-v Verbose
|
||||||
-f Force everything
|
|
||||||
-p Enable profiling
|
-p Enable profiling
|
||||||
-c Zpool configuration
|
-c Zpool configuration
|
||||||
-t Zpios test
|
-t Zpios test
|
||||||
|
@ -174,7 +173,7 @@ ZPIOS_OPTIONS=
|
||||||
ZPOOL_OPTIONS=""
|
ZPOOL_OPTIONS=""
|
||||||
ZFS_OPTIONS=""
|
ZFS_OPTIONS=""
|
||||||
|
|
||||||
while getopts 'hvfpc:t:o:l:s:' OPTION; do
|
while getopts 'hvpc:t:o:l:s:' OPTION; do
|
||||||
case $OPTION in
|
case $OPTION in
|
||||||
h)
|
h)
|
||||||
usage
|
usage
|
||||||
|
@ -184,10 +183,6 @@ while getopts 'hvfpc:t:o:l:s:' OPTION; do
|
||||||
VERBOSE=1
|
VERBOSE=1
|
||||||
VERBOSE_FLAG="-v"
|
VERBOSE_FLAG="-v"
|
||||||
;;
|
;;
|
||||||
f)
|
|
||||||
FORCE=1
|
|
||||||
FORCE_FLAG="-f"
|
|
||||||
;;
|
|
||||||
p)
|
p)
|
||||||
PROFILE=1
|
PROFILE=1
|
||||||
;;
|
;;
|
||||||
|
@ -242,8 +237,7 @@ if [ ${VERBOSE} ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Create the zpool configuration
|
# Create the zpool configuration
|
||||||
${ZPOOL_CREATE_SH} ${VERBOSE_FLAG} ${FORCE_FLAG} \
|
${ZPOOL_CREATE_SH} ${VERBOSE_FLAG} -p ${ZPOOL_NAME} -c ${ZPOOL_CONFIG} \
|
||||||
-p ${ZPOOL_NAME} -c ${ZPOOL_CONFIG} \
|
|
||||||
-l "${ZPOOL_OPTIONS}" -s "${ZFS_OPTIONS}" || exit 1
|
-l "${ZPOOL_OPTIONS}" -s "${ZFS_OPTIONS}" || exit 1
|
||||||
|
|
||||||
if [ ${PROFILE} ]; then
|
if [ ${PROFILE} ]; then
|
||||||
|
@ -262,8 +256,8 @@ if [ ${VERBOSE} ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Destroy the zpool configuration
|
# Destroy the zpool configuration
|
||||||
${ZPOOL_CREATE_SH} ${VERBOSE_FLAG} ${FORCE_FLAG} \
|
${ZPOOL_CREATE_SH} ${VERBOSE_FLAG} -p ${ZPOOL_NAME} \
|
||||||
-p ${ZPOOL_NAME} -c ${ZPOOL_CONFIG} -d || exit 1
|
-c ${ZPOOL_CONFIG} -d || exit 1
|
||||||
|
|
||||||
# Unload the test module stack and wait for device removal
|
# Unload the test module stack and wait for device removal
|
||||||
unload_modules
|
unload_modules
|
||||||
|
|
|
@ -24,10 +24,10 @@ DESCRIPTION:
|
||||||
OPTIONS:
|
OPTIONS:
|
||||||
-h Show this message
|
-h Show this message
|
||||||
-v Verbose
|
-v Verbose
|
||||||
-f Force everything
|
|
||||||
-c Configuration for zpool
|
-c Configuration for zpool
|
||||||
-p Name for zpool
|
-p Name for zpool
|
||||||
-d Destroy zpool (default create)
|
-d Destroy zpool (default create)
|
||||||
|
-f Force everything
|
||||||
-l Additional zpool options
|
-l Additional zpool options
|
||||||
-s Additional zfs options
|
-s Additional zfs options
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue