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-changelog

[Xen-changelog] [xen-unstable] stubdoms: handle cdrom devices in the con

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] stubdoms: handle cdrom devices in the config file
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 24 Apr 2009 09:10:13 -0700
Delivery-date: Fri, 24 Apr 2009 09:10:25 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1240500168 -3600
# Node ID 8b152638adaaa8a48f38564ef9bc9b479bb43bf0
# Parent  3ccd0f0dba5bc3491095bc0f72f41e17190eacf8
stubdoms: handle cdrom devices in the config file

Signed-off-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
---
 stubdom/stubdom-dm |    4 +++-
 1 files changed, 3 insertions(+), 1 deletion(-)

diff -r 3ccd0f0dba5b -r 8b152638adaa stubdom/stubdom-dm
--- a/stubdom/stubdom-dm        Thu Apr 23 12:21:29 2009 +0100
+++ b/stubdom/stubdom-dm        Thu Apr 23 16:22:48 2009 +0100
@@ -112,6 +112,8 @@ do
     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 @@ do
     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-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] stubdoms: handle cdrom devices in the config file, Xen patchbot-unstable <=