]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemuFDPassTransferCommand: Mark that FD was passed
authorPeter Krempa <pkrempa@redhat.com>
Tue, 31 Jan 2023 16:26:43 +0000 (17:26 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 1 Feb 2023 08:17:41 +0000 (09:17 +0100)
Until now the code didn't expect that we'd want to rollback/detach a FD
passed on the commandline, but whith disk backend FD passing this can
happen.

Properly mark the 'qemuFDPass' object as passed to qemu even when it was
done on the commandline.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
src/qemu/qemu_fd.c

index 51a8133fdeb8beb5a0c098331ae166de69c50f7e..ebeeb65505e79424d88c463526b90b16a7074d76 100644 (file)
@@ -151,6 +151,8 @@ qemuFDPassTransferCommand(qemuFDPass *fdpass,
         fdpass->fds[i].fd = -1;
         virCommandAddArgList(cmd, "-add-fd", arg, NULL);
     }
+
+    fdpass->passed = true;
 }