]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Fix typo in storage cloning
authorDaniel P. Berrange <berrange@redhat.com>
Fri, 17 Jul 2009 12:33:24 +0000 (13:33 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 22 Jul 2009 11:40:02 +0000 (12:40 +0100)
src/storage_backend.c

index 166480498ba0e5370a79dee9431e1e1c2ea6053f..67815d7227db7d0dd9aca2cf18f56fdba24e0e04 100644 (file)
@@ -567,7 +567,7 @@ virStorageBackendGetBuildVolFromFunction(virConnectPtr conn,
         (inputvol->type == VIR_STORAGE_VOL_FILE &&
          inputvol->target.format != VIR_STORAGE_VOL_FILE_RAW)) {
 
-        if ((tool_type = virStorageBackendFindFSImageTool(NULL)) != -1) {
+        if ((tool_type = virStorageBackendFindFSImageTool(NULL)) < 0) {
             virStorageReportError(conn, VIR_ERR_INTERNAL_ERROR,
                                   "%s", _("creation of non-raw file images is "
                                           "not supported without qemu-img."));