mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-31 05:51:53 -06:00
Fix regression for "-drive file="
Empty file used to create an empty drive (no media). Since commit
9dfd7c7a
, it's an error: "qemu: could not open disk image : No such
file or directory". Older versions of libvirt can choke on this.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
feeee5aca7
commit
dd5b0d71d6
1 changed files with 1 additions and 1 deletions
|
@ -462,7 +462,7 @@ DriveInfo *drive_init(QemuOpts *opts, int default_to_scsi, int *fatal_error)
|
||||||
case IF_COUNT:
|
case IF_COUNT:
|
||||||
abort();
|
abort();
|
||||||
}
|
}
|
||||||
if (!file) {
|
if (!file || !*file) {
|
||||||
*fatal_error = 0;
|
*fatal_error = 0;
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue