]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
iscsi: Use error message from virStorageBackendSCSIFindLUs
authorJohn Ferlan <jferlan@redhat.com>
Mon, 30 Mar 2015 22:49:36 +0000 (18:49 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Thu, 2 Apr 2015 12:46:23 +0000 (08:46 -0400)
Don't supercede the error message virStorageBackendSCSIFindLUs as the
message such as "error: Failed to find LUs on host 60: ..." is not overly
clear as to what the real problem might be.

Signed-off-by: John Ferlan <jferlan@redhat.com>
src/storage/storage_backend_iscsi.c

index 497a71b66c44eb8a8a15a87b9fb811e7bf6b6c43..0c225b05ad99e5494ffb79731c1c541ce1abdb17 100644 (file)
@@ -146,11 +146,8 @@ virStorageBackendISCSIFindLUs(virStoragePoolObjPtr pool,
         retval = -1;
     }
 
-    if (virStorageBackendSCSIFindLUs(pool, host) < 0) {
-        virReportSystemError(errno,
-                             _("Failed to find LUs on host %u"), host);
+    if (virStorageBackendSCSIFindLUs(pool, host) < 0)
         retval = -1;
-    }
 
     VIR_FREE(sysfs_path);