[libvirt] [PATCH v2 3/6] qemu: command: Remove condition to use default sheepdog port

Peter Krempa pkrempa at redhat.com
Thu Jul 20 12:30:00 UTC 2017


Since we now set the default ports when parsing disks, it's not
necessary to have default port numbers encoded in the command line
generator.
---
 src/qemu/qemu_command.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c
index be23796df..810578840 100644
--- a/src/qemu/qemu_command.c
+++ b/src/qemu/qemu_command.c
@@ -938,8 +938,7 @@ qemuBuildNetworkDriveStr(virStorageSourcePtr src,
                     goto cleanup;
             } else if (src->nhosts == 1) {
                 if (virAsprintf(&ret, "sheepdog:%s:%s:%s",
-                                src->hosts->name,
-                                src->hosts->port ? src->hosts->port : "7000",
+                                src->hosts->name, src->hosts->port,
                                 src->path) < 0)
                     goto cleanup;
             } else {
-- 
2.13.2




More information about the libvir-list mailing list