From: Luiz Capitulino Date: Mon, 14 Dec 2009 20:53:21 +0000 (-0200) Subject: monitor: Use 'device' in eject X-Git-Tag: v0.12.0~39 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fb8cf78db65591b2e989ffd02279bb34372a3b79;p=thirdparty%2Fqemu.git 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 Signed-off-by: Anthony Liguori (cherry picked from commit 78d714e08f15171adf48e32ba86709f9c64f37cf) --- diff --git a/monitor.c b/monitor.c index d97d529cc92..d5041dc781a 100644 --- a/monitor.c +++ b/monitor.c @@ -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 c788c7378e3..338e30e7d0c 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,