]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Make virStorageBackendCopyToFD return -errno.
authorLaine Stump <laine@laine.org>
Mon, 19 Jul 2010 23:35:30 +0000 (19:35 -0400)
committerLaine Stump <laine@laine.org>
Wed, 21 Jul 2010 18:32:45 +0000 (14:32 -0400)
commitace1a2bac411a6a1361b030f94c8666dadd14764
treee93af666b57ea88b0c0d9f4054dc2a0f81633139
parent2ad04f78536ce35f437fb2785aad9155f551b6d0
Make virStorageBackendCopyToFD return -errno.

Previously virStorageBackendCopyToFD would simply return -1 on
error. This made the error return from one of its callers inconsistent
(createRawFileOpHook is supposed to return -errno, but if
virStorageBackendCopyToFD failed, createRawFileOpHook would just
return -1). Since there is a useful errno in every case of error
return from virStorageBackendCopyToFD, and since the other uses of
that function ignore the return code (beyond simply checking to see if
it is < 0), this is a safe change.
src/storage/storage_backend.c