Date: Mon, 15 Jun 2015 13:01:42 +0000 (UTC) From: Andriy Gapon <avg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r284413 - stable/10/share/examples/bhyve Message-ID: <201506151301.t5FD1gjx025760@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: avg Date: Mon Jun 15 13:01:42 2015 New Revision: 284413 URL: https://svnweb.freebsd.org/changeset/base/284413 Log: MFC r284023: bhyve/vmrun.sh: support passing disk options same as for bhyve(8) Modified: stable/10/share/examples/bhyve/vmrun.sh Directory Properties: stable/10/ (props changed) Modified: stable/10/share/examples/bhyve/vmrun.sh ============================================================================== --- stable/10/share/examples/bhyve/vmrun.sh Mon Jun 15 12:50:43 2015 (r284412) +++ stable/10/share/examples/bhyve/vmrun.sh Mon Jun 15 13:01:42 2015 (r284413) @@ -96,7 +96,10 @@ while getopts ac:C:d:e:g:hH:iI:m:t: c ; console=${OPTARG} ;; d) - eval "disk_dev${disk_total}=\"${OPTARG}\"" + disk_dev=${OPTARG%%,*} + disk_opts=${OPTARG#${disk_dev}} + eval "disk_dev${disk_total}=\"${disk_dev}\"" + eval "disk_opts${disk_total}=\"${disk_opts}\"" disk_total=$(($disk_total + 1)) ;; e) @@ -225,8 +228,9 @@ while [ 1 ]; do i=0 while [ $i -lt $disk_total ] ; do eval "disk=\$disk_dev${i}" + eval "opts=\$disk_opts${i}" make_and_check_diskdev "${disk}" - devargs="$devargs -s $nextslot:0,virtio-blk,${disk} " + devargs="$devargs -s $nextslot:0,virtio-blk,${disk}${opts} " nextslot=$(($nextslot + 1)) i=$(($i + 1)) done
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201506151301.t5FD1gjx025760>