}
}
- rc = qemuMonitorDumpToFd(priv->mon, fd, dumpformat, true);
+ rc = qemuMonitorDumpToFd(priv->mon, fd, dumpformat);
qemuDomainObjExitMonitor(vm);
if (rc < 0)
int
qemuMonitorDumpToFd(qemuMonitor *mon,
int fd,
- const char *dumpformat,
- bool detach)
+ const char *dumpformat)
{
int ret;
VIR_DEBUG("fd=%d dumpformat=%s", fd, dumpformat);
if (qemuMonitorSendFileHandle(mon, "dump", fd) < 0)
return -1;
- ret = qemuMonitorJSONDump(mon, "fd:dump", dumpformat, detach);
+ ret = qemuMonitorJSONDump(mon, "fd:dump", dumpformat);
if (ret < 0) {
if (qemuMonitorCloseFileHandle(mon, "dump") < 0)
int qemuMonitorDumpToFd(qemuMonitor *mon,
int fd,
- const char *dumpformat,
- bool detach);
+ const char *dumpformat);
int qemuMonitorGraphicsRelocate(qemuMonitor *mon,
int type,
int
qemuMonitorJSONDump(qemuMonitor *mon,
const char *protocol,
- const char *dumpformat,
- bool detach)
+ const char *dumpformat)
{
g_autoptr(virJSONValue) cmd = NULL;
g_autoptr(virJSONValue) reply = NULL;
"b:paging", false,
"s:protocol", protocol,
"S:format", dumpformat,
- "B:detach", detach,
+ "b:detach", true,
NULL);
if (!cmd)
return -1;
int
qemuMonitorJSONDump(qemuMonitor *mon,
const char *protocol,
- const char *dumpformat,
- bool detach);
+ const char *dumpformat);
int
qemuMonitorJSONGraphicsRelocate(qemuMonitor *mon,
GEN_TEST_FUNC(qemuMonitorJSONSavePhysicalMemory, 0, 1024, "/foo/bar")
GEN_TEST_FUNC(qemuMonitorJSONMigrate, 0, "tcp:localhost:12345")
GEN_TEST_FUNC(qemuMonitorJSONMigrateRecover, "tcp://destination.host:54321");
-GEN_TEST_FUNC(qemuMonitorJSONDump, "dummy_protocol", "elf",
- true)
+GEN_TEST_FUNC(qemuMonitorJSONDump, "dummy_protocol", "elf")
GEN_TEST_FUNC(qemuMonitorJSONGraphicsRelocate, VIR_DOMAIN_GRAPHICS_TYPE_SPICE,
"localhost", 12345, 12346, "certsubjectval")
GEN_TEST_FUNC(qemuMonitorJSONRemoveNetdev, "net0")