diff options
author | Luiz Capitulino <lcapitulino@redhat.com> | 2009-12-14 18:53:21 -0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-12-18 11:26:27 -0600 |
commit | 78d714e08f15171adf48e32ba86709f9c64f37cf (patch) | |
tree | 02db6a97b1bc5d739d70902e24ec8e8a0ee67828 | |
parent | 29ec3156ee66b6e2553a0adb2f35cb143edddc5f (diff) | |
download | qemu-78d714e08f15171adf48e32ba86709f9c64f37cf.zip qemu-78d714e08f15171adf48e32ba86709f9c64f37cf.tar.gz qemu-78d714e08f15171adf48e32ba86709f9c64f37cf.tar.bz2 |
monitor: Use 'device' in eject
Monitor's eject command uses 'filename' for the device name
argument, but 'device' is a better name.
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rw-r--r-- | monitor.c | 2 | ||||
-rw-r--r-- | qemu-monitor.hx | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -864,7 +864,7 @@ static void do_eject(Monitor *mon, const QDict *qdict, QObject **ret_data) { BlockDriverState *bs; int force = qdict_get_int(qdict, "force"); - const char *filename = qdict_get_str(qdict, "filename"); + const char *filename = qdict_get_str(qdict, "device"); bs = bdrv_find(filename); if (!bs) { diff --git a/qemu-monitor.hx b/qemu-monitor.hx index c788c73..338e30e 100644 --- a/qemu-monitor.hx +++ b/qemu-monitor.hx @@ -130,7 +130,7 @@ ETEXI { .name = "eject", - .args_type = "force:-f,filename:B", + .args_type = "force:-f,device:B", .params = "[-f] device", .help = "eject a removable medium (use -f to force it)", .user_print = monitor_user_noop, |