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] Enable the ejection of the physical cdrom tray, when use

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Enable the ejection of the physical cdrom tray, when user enters
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Sat, 11 Mar 2006 10:50:07 +0000
Delivery-date: Sat, 11 Mar 2006 10:50:59 +0000
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/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/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 kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID a5a50f6fbc0982aa256c8fc29bbdfe88e14abc6f
# Parent  d4e433d615b04f4bbb61f240a3813a8fdb50d1f2
Enable the ejection of the physical cdrom tray, when user enters
"eject cdrom" in the control console of a VMX guest.

Signed-Off-By: Nitin A Kamble <nitin.a.kamble@xxxxxxxxx>

diff -r d4e433d615b0 -r a5a50f6fbc09 tools/ioemu/monitor.c
--- a/tools/ioemu/monitor.c     Fri Mar 10 16:32:04 2006
+++ b/tools/ioemu/monitor.c     Sat Mar 11 09:44:48 2006
@@ -407,6 +407,7 @@
 
 static void do_eject(int force, const char *filename)
 {
+    char cmd[1024];
     BlockDriverState *bs;
 
     bs = bdrv_find(filename);
@@ -415,6 +416,9 @@
         return;
     }
     eject_device(bs, force);
+    sprintf(cmd, "eject %s", filename);
+    system(cmd);
+
 }
 
 static void do_change(const char *device, const char *filename)

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Enable the ejection of the physical cdrom tray, when user enters, Xen patchbot -unstable <=