mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 10:37:35 +03:00
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:
committed by
Brian Behlendorf
parent
f12e42cccf
commit
31712a7ea8
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user