diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c index a0f6d3ee6aa07d72eca32832ef1c2d907fd37166..3b3608a3d86382b863ea10fd1e34f78f5ba8ae84 100644 --- a/src/qemu/qemu_command.c +++ b/src/qemu/qemu_command.c @@ -9696,7 +9696,7 @@ qemuBuildPanicCommandLine(virCommandPtr cmd, /** * qemuBuildPRManagerInfoProps: - * @disk: disk definition + * @src: storage source * @propsret: Returns JSON object containing properties of the pr-manager-helper object * * Build the JSON properties for the pr-manager object. @@ -9705,14 +9705,12 @@ qemuBuildPanicCommandLine(virCommandPtr cmd, * -1 on failure (with error message set). */ int -qemuBuildPRManagerInfoProps(const virDomainDiskDef *disk, +qemuBuildPRManagerInfoProps(virStorageSourcePtr src, virJSONValuePtr *propsret) { return qemuMonitorCreateObjectProps(propsret, - "pr-manager-helper", - disk->src->pr->mgralias, - "s:path", disk->src->pr->path, - NULL); + "pr-manager-helper", src->pr->mgralias, + "s:path", src->pr->path, NULL); } @@ -9739,7 +9737,7 @@ qemuBuildMasterPRCommandLine(virCommandPtr cmd, managedAdded = true; } - if (qemuBuildPRManagerInfoProps(disk, &props) < 0) + if (qemuBuildPRManagerInfoProps(disk->src, &props) < 0) goto cleanup; if (virQEMUBuildObjectCommandlineFromJSON(&buf, props) < 0) diff --git a/src/qemu/qemu_command.h b/src/qemu/qemu_command.h index c8810586c7dfd6ee586b0f5f8335ef15a967bd35..fc87fa6a596de37042cf0592e22f1a540438ac0a 100644 --- a/src/qemu/qemu_command.h +++ b/src/qemu/qemu_command.h @@ -55,7 +55,7 @@ virCommandPtr qemuBuildCommandLine(virQEMUDriverPtr driver, int **nicindexes); /* Generate the object properties for pr-manager */ -int qemuBuildPRManagerInfoProps(const virDomainDiskDef *disk, +int qemuBuildPRManagerInfoProps(virStorageSourcePtr src, virJSONValuePtr *propsret); /* Generate the object properties for a secret */ diff --git a/src/qemu/qemu_hotplug.c b/src/qemu/qemu_hotplug.c index 6c1210ddbb60267f0421ccdd3c309eecd5b0ba05..121f9a9431c6cee43a5259443ad9849b2321d915 100644 --- a/src/qemu/qemu_hotplug.c +++ b/src/qemu/qemu_hotplug.c @@ -400,7 +400,7 @@ qemuMaybeBuildPRManagerInfoProps(virDomainObjPtr vm, return 0; } - return qemuBuildPRManagerInfoProps(disk, propsret); + return qemuBuildPRManagerInfoProps(disk->src, propsret); }