提交 615e34a7 编写于 作者: P Peter Krempa

qemu: command: Remove condition to use default sheepdog port

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.
上级 1f920b9f
...@@ -938,8 +938,7 @@ qemuBuildNetworkDriveStr(virStorageSourcePtr src, ...@@ -938,8 +938,7 @@ qemuBuildNetworkDriveStr(virStorageSourcePtr src,
goto cleanup; goto cleanup;
} else if (src->nhosts == 1) { } else if (src->nhosts == 1) {
if (virAsprintf(&ret, "sheepdog:%s:%s:%s", if (virAsprintf(&ret, "sheepdog:%s:%s:%s",
src->hosts->name, src->hosts->name, src->hosts->port,
src->hosts->port ? src->hosts->port : "7000",
src->path) < 0) src->path) < 0)
goto cleanup; goto cleanup;
} else { } else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册