]> git.ipfire.org Git - thirdparty/libvirt.git/commit
storage: fix return values of virStorageBackendWipeExtentLocal
authorJán Tomko <jtomko@redhat.com>
Fri, 11 Dec 2015 15:37:34 +0000 (16:37 +0100)
committerJán Tomko <jtomko@redhat.com>
Thu, 17 Dec 2015 11:44:02 +0000 (12:44 +0100)
commit09cbfc0481948d3f344a5a2a8e54d8662f385a4f
tree4d595a8940b2e7869f6af8d824dae832303d6670
parent242e3ea4e3ab3ab264238c04beb0c6ea05410190
storage: fix return values of virStorageBackendWipeExtentLocal

Return -1:
* on all failures of fdatasync. Instead of propagating -errno
  all the way up to the virStorageVolWipe API, which is documented
  to return 0 or -1.
* after a partial wipe. If safewrite failed, we would re-use the
  non-negative return value of lseek (which should be 0 in this case,
  because that's the only offset we seek to).
src/storage/storage_backend.c