]> git.ipfire.org Git - thirdparty/libvirt.git/commit
storage: use virDirRead API
authorEric Blake <eblake@redhat.com>
Thu, 24 Apr 2014 21:48:55 +0000 (15:48 -0600)
committerEric Blake <eblake@redhat.com>
Mon, 28 Apr 2014 23:52:46 +0000 (17:52 -0600)
commit56a03233ab8625a27d32833490b056870d28b5fa
tree2ce22a1f70b321c718c5733d7a2d05505c871b94
parentddcf4730ce23996117646641f59f1f1a93635fef
storage: use virDirRead API

More instances of failure to report (unlikely) readdir errors.
In one case, I chose to ignore them, given that a readdir error
would be no different than timing out on the loop, where the
fallback path behaves correctly either way.

* src/storage/storage_backend.c (virStorageBackendStablePath):
Ignore readdir errors.
* src/storage/storage_backend_fs.c
(virStorageBackendFileSystemRefresh): Report readdir errors.
* src/storage/storage_backend_iscsi.c
(virStorageBackendISCSIGetHostNumber): Likewise.
* src/storage/storage_backend_scsi.c (getNewStyleBlockDevice)
(getBlockDevice, virStorageBackendSCSIFindLUs): Likewise.

Signed-off-by: Eric Blake <eblake@redhat.com>
src/storage/storage_backend.c
src/storage/storage_backend_fs.c
src/storage/storage_backend_iscsi.c
src/storage/storage_backend_scsi.c