* [PATCH] stubdoms: handle cdrom devices in the config file
@ 2009-04-23 15:11 Stefano Stabellini
0 siblings, 0 replies; only message in thread
From: Stefano Stabellini @ 2009-04-23 15:11 UTC (permalink / raw)
To: xen-devel
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-04-23 15:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-23 15:11 [PATCH] stubdoms: handle cdrom devices in the config file Stefano Stabellini
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.