ia64/xen-unstable

changeset 9225:a5a50f6fbc09

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@intel.com>
author kaf24@firebug.cl.cam.ac.uk
date Sat Mar 11 10:44:48 2006 +0100 (2006-03-11)
parents d4e433d615b0
children 3f8123ae34ba
files tools/ioemu/monitor.c
line diff
     1.1 --- a/tools/ioemu/monitor.c	Fri Mar 10 17:32:04 2006 +0100
     1.2 +++ b/tools/ioemu/monitor.c	Sat Mar 11 10:44:48 2006 +0100
     1.3 @@ -407,6 +407,7 @@ static int eject_device(BlockDriverState
     1.4  
     1.5  static void do_eject(int force, const char *filename)
     1.6  {
     1.7 +    char cmd[1024];
     1.8      BlockDriverState *bs;
     1.9  
    1.10      bs = bdrv_find(filename);
    1.11 @@ -415,6 +416,9 @@ static void do_eject(int force, const ch
    1.12          return;
    1.13      }
    1.14      eject_device(bs, force);
    1.15 +    sprintf(cmd, "eject %s", filename);
    1.16 +    system(cmd);
    1.17 +
    1.18  }
    1.19  
    1.20  static void do_change(const char *device, const char *filename)