From 1e704908329b9cfc9fd653b977671629cfab22a8 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Thu, 18 Mar 2010 16:50:44 +0000 Subject: [PATCH] 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 The execution method is as follows. ---------------------------------------------------------------------- Domain configuration file: disk = ["tap:aio:/,xvda,w", ",xvdc:cdrom,r"] Operation that assign CD: # xm block-configure file: xvdc:cdrom r Operation that releases CD # xm block-configure '' xvdc:cdrom r ---------------------------------------------------------------------- (cherry picked from commit 73cef2cca413c17f314724c66194315038ea66c3) --- xenstore.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/xenstore.c b/xenstore.c index 264cf977..b6d86ce1 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' -" -- 2.39.5