ZTS: Fix incorrect is_physical_device usage

This check isn't meant to be used for command substitution.

Reviewed-by: John Kennedy <john.kennedy@delphix.com>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ryan Moeller <ryan@ixsystems.com>
Closes #9844
This commit is contained in:
Ryan Moeller 2020-01-16 16:26:26 -05:00 committed by Brian Behlendorf
parent f12e42cccf
commit 31712a7ea8
12 changed files with 12 additions and 12 deletions

View File

@ -259,7 +259,7 @@ function get_device_dir #device
{
typeset device=$1
if ! is_freebsd && ! $(is_physical_device $device) ; then
if ! is_freebsd && ! is_physical_device $device; then
if [[ $device != "/" ]]; then
device=${device%/*}
fi

View File

@ -34,7 +34,7 @@
verify_runnable "global"
if ! $(is_physical_device $DISKS) ; then
if ! is_physical_device $DISKS; then
log_unsupported "This directory cannot be run on raw files."
fi

View File

@ -34,7 +34,7 @@
verify_runnable "global"
if ! $(is_physical_device $DISKS) ; then
if ! is_physical_device $DISKS; then
log_unsupported "This directory cannot be run on raw files."
fi

View File

@ -61,7 +61,7 @@ function cleanup
set -A datasets "$TESTPOOL" "$TESTPOOL2"
if ! $(is_physical_device $DISKS) ; then
if ! is_physical_device $DISKS; then
log_unsupported "This case cannot be run on raw files."
fi

View File

@ -30,7 +30,7 @@
DISK=${DISKS%% *}
if ! $(is_physical_device $DISK) ; then
if ! is_physical_device $DISK; then
log_unsupported "Only partitionable physical disks can be used"
fi

View File

@ -35,7 +35,7 @@
verify_runnable "global"
verify_disk_count "$DISKS" 2
if ! $(is_physical_device $ZFS_DISK1) ; then
if ! is_physical_device $ZFS_DISK1; then
log_unsupported "Only partitionable physical disks can be used"
fi

View File

@ -34,7 +34,7 @@
verify_runnable "global"
if ! $(is_physical_device $DISKS) ; then
if ! is_physical_device $DISKS; then
log_unsupported "This directory cannot be run on raw files."
fi

View File

@ -45,7 +45,7 @@
verify_runnable "global"
if ! $(is_physical_device $DISKS) ; then
if ! is_physical_device $DISKS; then
log_unsupported "This directory cannot be run on raw files."
fi

View File

@ -46,7 +46,7 @@
verify_runnable "global"
if ! $(is_physical_device $DISKS) ; then
if ! is_physical_device $DISKS; then
log_unsupported "This directory cannot be run on raw files."
fi

View File

@ -45,7 +45,7 @@
verify_runnable "global"
if ! $(is_physical_device $DISKS) ; then
if ! is_physical_device $DISKS; then
log_unsupported "This directory cannot be run on raw files."
fi

View File

@ -45,7 +45,7 @@
verify_runnable "global"
if ! $(is_physical_device $DISKS) ; then
if ! is_physical_device $DISKS; then
log_unsupported "This directory cannot be run on raw files."
fi

View File

@ -45,7 +45,7 @@
verify_runnable "global"
if ! $(is_physical_device $DISKS) ; then
if ! is_physical_device $DISKS; then
log_unsupported "This directory cannot be run on raw files."
fi