Skip to content

Commit

Permalink
8304 zfs-tests/bin/zfstest should allow DISKS=(zvols)
Browse files Browse the repository at this point in the history
Reviewed by: Sanjay Nadkarni <sanjay.nadkarni@nexenta.com>
Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com>
Reviewed by: John Kennedy <john.kennedy@delphix.com>
Approved by: Prakash Surya <prakash.surya@delphix.com>
  • Loading branch information
gwr authored and prakashsurya committed Jun 6, 2017
1 parent 5b06278 commit 0dbcca9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion usr/src/test/zfs-tests/cmd/scripts/zfstest.ksh
Expand Up @@ -86,8 +86,13 @@ function verify_id
function verify_disks
{
typeset disk
typeset path
for disk in $DISKS; do
sudo -k prtvtoc /dev/rdsk/${disk}s0 >/dev/null 2>&1
case $disk in
/*) path=$disk;;
*) path=/dev/rdsk/${disk}s0
esac
sudo -k prtvtoc $path >/dev/null 2>&1
[[ $? -eq 0 ]] || return 1
done
return 0
Expand Down

0 comments on commit 0dbcca9

Please sign in to comment.