| Submitter | Kevin Wolf |
|---|---|
| Date | Jan. 24, 2012, 8:53 a.m. |
| Message ID | <4F1E7171.4060908@redhat.com> |
| Download | mbox | patch |
| Permalink | /patch/137524/ |
| State | New |
| Headers | show |
Comments
Patch
diff --git a/blockdev.c b/blockdev.c index 9252c25..0499ee6 100644 --- a/blockdev.c +++ b/blockdev.c @@ -678,8 +678,8 @@ void qmp_blockdev_snapshot_sync(const char *device, const char *snapshot_file, static void eject_device(BlockDriverState *bs, int force, Error **errp) { if (bdrv_in_use(bs)) { - qerror_report(QERR_DEVICE_IN_USE, bdrv_get_device_name(bs)); - return -1; + error_set(errp, QERR_DEVICE_IN_USE, bdrv_get_device_name(bs)); + return; } if (!bdrv_dev_has_removable_media(bs)) {