]> git.ipfire.org Git - thirdparty/libvirt.git/commit
storage: let format probing work on root-squash NFS
authorEric Blake <eblake@redhat.com>
Sat, 20 Oct 2012 19:56:35 +0000 (13:56 -0600)
committerEric Blake <eblake@redhat.com>
Mon, 22 Oct 2012 15:04:57 +0000 (09:04 -0600)
commitd9d77bfa8085f37eb0bff3d795c3d12f5d36de3d
tree3842052add67fbd72f28b057213147bf9f169354
parente0ad4669834d44763f7201ae97b997e9c64e8940
storage: let format probing work on root-squash NFS

Yet another instance of where using plain open() mishandles files
that live on root-squash NFS, and where improving the API can
improve the chance of a successful probe.

* src/util/storage_file.h (virStorageFileProbeFormat): Alter
signature.
* src/util/storage_file.c (virStorageFileProbeFormat): Use better
method for opening file.
* src/qemu/qemu_driver.c (qemuDomainGetBlockInfo): Update caller.
* src/storage/storage_backend_fs.c (virStorageBackendProbeTarget):
Likewise.
src/qemu/qemu_driver.c
src/storage/storage_backend_fs.c
src/util/storage_file.c
src/util/storage_file.h