wrong error for blockdev-snapshot-sync
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QEMU |
Expired
|
Undecided
|
Unassigned |
Bug Description
From Laszlo Ersek:
>> + proto_drv = bdrv_find_
>> if (!proto_drv) {
>> - qerror_
>> - ret = -1;
>> - goto out;
>> + error_set(errp, QERR_INVALID_
>> + return;
>> }
>
> I don't understand the logic here (based on the error message). We
> specified "format" for the case when a completely new snapshot file has
> to be created. If the file exists already, then bdrv_find_
> tries to find the driver for it. If that fails, then we must report an
> error indeed, but instead of referring to "format", we'd have to report
> the "scheme" from the beginning of "snapshot_file".
Which version of QEMU was this? Is this still a problem with the latest version of QEMU?