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] [qemu-xen-3.4-testing] Allow changing CD for /dev/xvdX d

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [qemu-xen-3.4-testing] Allow changing CD for /dev/xvdX devices.
From: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
Date: Thu, 8 Apr 2010 09:10:10 -0700
Delivery-date: Thu, 08 Apr 2010 09:10:42 -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
commit 1e704908329b9cfc9fd653b977671629cfab22a8
Author: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
Date:   Thu Mar 18 16:50:44 2010 +0000

    Allow changing CD for /dev/xvdX devices.
    
    We found the issue being not able to change CD on the HVM-Domain.
    It is possible on the /dev/hdc device,
    but it is impossible on the/dev/xvdc device.
    
    We want to work it as all /dev/xvdX devices on the HVM-domain
     as well as on the PV-domain.
    
    Signed-off-by: Takanori Kasai <kasai.takanori@xxxxxxxxxxxxxx>
    
    The execution method is as follows.
    ----------------------------------------------------------------------
    Domain configuration file:
     disk = ["tap:aio:/<guest image file>,xvda,w", ",xvdc:cdrom,r"]
    
    Operation that assign CD:
     # xm block-configure <domain> file:<iso image> xvdc:cdrom r
    
    Operation that releases CD
     # xm block-configure <domain> '' xvdc:cdrom r
    ----------------------------------------------------------------------
    (cherry picked from commit 73cef2cca413c17f314724c66194315038ea66c3)
---
 xenstore.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/xenstore.c b/xenstore.c
index 264cf97..b6d86ce 100644
--- a/xenstore.c
+++ b/xenstore.c
@@ -999,10 +999,6 @@ void xenstore_process_event(void *opaque)
         goto out;
     }
 
-    if (strncmp(vec[XS_WATCH_TOKEN], "hd", 2) ||
-        strlen(vec[XS_WATCH_TOKEN]) != 3)
-        goto out;
-
     hd_index = drive_name_to_index(vec[XS_WATCH_TOKEN]);
     if (hd_index == -1) {
        fprintf(stderr,"medium change watch on `%s' -"
--
generated by git-patchbot for /home/xen/git/qemu-xen-3.4-testing.git

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [qemu-xen-3.4-testing] Allow changing CD for /dev/xvdX devices., Ian Jackson <=