diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2010-07-06 08:31:17 -0500 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2010-07-06 08:31:17 -0500 |
commit | 02d0ba1420803562109185f47be6f7430bfdefae (patch) | |
tree | 7d7185e9edd5bcf30ea38760d2a7f12fd21bb1c0 /blockdev.c | |
parent | 9f5a1fae7ee1a7c66462e5b8e9d21552d4dc5027 (diff) | |
parent | a6c4d36425871fafc55ce3937bebd05e86f5ea81 (diff) |
Merge remote branch 'qmp/for-anthony' into staging
Diffstat (limited to 'blockdev.c')
-rw-r--r-- | blockdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/blockdev.c b/blockdev.c index 3b8c6067c7..4dcfad89c5 100644 --- a/blockdev.c +++ b/blockdev.c @@ -521,7 +521,7 @@ static int eject_device(Monitor *mon, BlockDriverState *bs, int force) int do_eject(Monitor *mon, const QDict *qdict, QObject **ret_data) { BlockDriverState *bs; - int force = qdict_get_int(qdict, "force"); + int force = qdict_get_try_bool(qdict, "force", 0); const char *filename = qdict_get_str(qdict, "device"); bs = bdrv_find(filename); |