[libvirt] [PATCH] virStorageBackendISCSIGetHostNumber: correctly use virDirOpen

Ján Tomko jtomko at redhat.com
Fri Jun 24 12:53:12 UTC 2016


Incorrect conflict resolution in my commit e81de04c1 broke this.
---
 src/storage/storage_backend_iscsi.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

Pushed under the build-breaker rule.

diff --git a/src/storage/storage_backend_iscsi.c b/src/storage/storage_backend_iscsi.c
index 4a16d2b..98d1141 100644
--- a/src/storage/storage_backend_iscsi.c
+++ b/src/storage/storage_backend_iscsi.c
@@ -100,9 +100,7 @@ virStorageBackendISCSIGetHostNumber(const char *sysfs_path,
 
     virFileWaitForDevices();
 
-    if (virDirOpen(&sysdir, sysfs_path) < 0)
-        virReportSystemError(errno,
-                             _("Failed to opendir path '%s'"), sysfs_path);
+    if (virDirOpen(&sysdir, sysfs_path) < 0) {
         retval = -1;
         goto out;
     }
-- 
2.7.3




More information about the libvir-list mailing list