]> Git Repo - qemu.git/commit - block/curl.c
curl: Operate on zero-length file
authorTomáš Golembiovský <[email protected]>
Fri, 8 Jul 2016 11:18:09 +0000 (13:18 +0200)
committerMichael Tokarev <[email protected]>
Thu, 15 Sep 2016 12:32:22 +0000 (15:32 +0300)
commita41c457881b5463b18901a849b4289459ab1d231
tree28cfd8bb295364bb773cd3b996097566dccae2f0
parentd4b84d564ee3eb7a58e4585d671fb3c220b6c3b9
curl: Operate on zero-length file

Another attempt to fix the bug 1596870.

When creating new disk backed by remote file accessed via HTTPS and the
backing file has zero length, qemu-img terminates with uniformative
error message:

    qemu-img: disk.qcow2: CURL: Error opening file:

While it may not make much sense to operate on empty file, other block
backends (e.g. raw backend for regular files) seem to allow it. This
patch fixes it for the curl backend and improves the reported error.

Signed-off-by: Tomáš Golembiovský <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
block/curl.c
This page took 0.020954 seconds and 4 git commands to generate.