Stefano Stabellini
2009-Apr-23 15:11 UTC
[Xen-devel] [PATCH] stubdoms: handle cdrom devices in the config file
Hi all, this patch adds proper support for cdrom devices in the config file with stubdoms. Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> --- diff -r 63ab139cfbb0 stubdom/stubdom-dm --- a/stubdom/stubdom-dm Thu Apr 23 15:27:30 2009 +0100 +++ b/stubdom/stubdom-dm Thu Apr 23 16:08:48 2009 +0100 @@ -112,6 +112,8 @@ vbd_disk=`xenstore-read $i/params` vbd_type=`xenstore-read $i/type` vbd_dev=`xenstore-read $i/dev` + vbd_front=`xenstore-read $i/frontend` + vbd_devtype=`xenstore-read $vbd_front/device-type` if [ $vbd_type = "file" ] then vbd_type="tap:aio" @@ -120,7 +122,7 @@ then echo -n "," >> /etc/xen/stubdoms/$domname-dm fi - echo -n "''$vbd_type:$vbd_disk,$vbd_dev,$vbd_mode''" >> /etc/xen/stubdoms/$domname-dm + echo -n "''$vbd_type:$vbd_disk,$vbd_dev:$vbd_devtype,$vbd_mode''" >> /etc/xen/stubdoms/$domname-dm j=$(( $j + 1 )) done echo " ] " >> /etc/xen/stubdoms/$domname-dm _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel