WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] stubdoms: handle cdrom devices in the config file

To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] stubdoms: handle cdrom devices in the config file
From: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
Date: Thu, 23 Apr 2009 16:11:25 +0100
Delivery-date: Thu, 23 Apr 2009 08:11:21 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.14 (X11/20080505)
Hi all,
this patch adds proper support for cdrom devices in the config file with
stubdoms.

Signed-off-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx> 

---

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@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] stubdoms: handle cdrom devices in the config file, Stefano Stabellini <=