ret = qemuMonitorBlockStream(priv->mon,
disk->src->nodeformat,
job->name,
- true,
- NULL,
nodebase,
backingPath,
speed);
qemuMonitorBlockStream(qemuMonitor *mon,
const char *device,
const char *jobname,
- bool persistjob,
- const char *base,
const char *baseNode,
const char *backingName,
unsigned long long bandwidth)
{
- VIR_DEBUG("device=%s, jobname=%s, persistjob=%d, base=%s, baseNode=%s, "
- "backingName=%s, bandwidth=%lluB",
- device, NULLSTR(jobname), persistjob, NULLSTR(base),
+ VIR_DEBUG("device=%s, jobname=%s, baseNode=%s, backingName=%s, bandwidth=%lluB",
+ device, NULLSTR(jobname),
NULLSTR(baseNode), NULLSTR(backingName), bandwidth);
QEMU_CHECK_MONITOR(mon);
- if (base && baseNode) {
- virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
- _("'base' and 'baseNode' can't be used together"));
- return -1;
- }
-
- return qemuMonitorJSONBlockStream(mon, device, jobname, persistjob, base,
+ return qemuMonitorJSONBlockStream(mon, device, jobname,
baseNode, backingName, bandwidth);
}
int qemuMonitorBlockStream(qemuMonitor *mon,
const char *device,
const char *jobname,
- bool persistjob,
- const char *base,
const char *baseNode,
const char *backingName,
unsigned long long bandwidth)
qemuMonitorJSONBlockStream(qemuMonitor *mon,
const char *device,
const char *jobname,
- bool persistjob,
- const char *base,
const char *baseNode,
const char *backingName,
unsigned long long speed)
{
g_autoptr(virJSONValue) cmd = NULL;
g_autoptr(virJSONValue) reply = NULL;
- virTristateBool autofinalize = VIR_TRISTATE_BOOL_ABSENT;
- virTristateBool autodismiss = VIR_TRISTATE_BOOL_ABSENT;
-
- if (persistjob) {
- autofinalize = VIR_TRISTATE_BOOL_YES;
- autodismiss = VIR_TRISTATE_BOOL_NO;
- }
+ virTristateBool autofinalize = VIR_TRISTATE_BOOL_YES;
+ virTristateBool autodismiss = VIR_TRISTATE_BOOL_NO;
if (!(cmd = qemuMonitorJSONMakeCommand("block-stream",
"s:device", device,
"S:job-id", jobname,
"Y:speed", speed,
- "S:base", base,
"S:base-node", baseNode,
"S:backing-file", backingName,
"T:auto-finalize", autofinalize,
qemuMonitorJSONBlockStream(qemuMonitor *mon,
const char *device,
const char *jobname,
- bool persistjob,
- const char *base,
const char *baseNode,
const char *backingName,
unsigned long long speed)
GEN_TEST_FUNC(qemuMonitorJSONRemoveNetdev, "net0")
GEN_TEST_FUNC(qemuMonitorJSONDelDevice, "ide0")
GEN_TEST_FUNC(qemuMonitorJSONBlockdevMirror, "jobname", true, "vdb", "targetnode", 1024, 1234, 31234, true, true)
-GEN_TEST_FUNC(qemuMonitorJSONBlockStream, "vdb", "jobname", true, "/foo/bar1", "backingnode", "backingfilename", 1024)
+GEN_TEST_FUNC(qemuMonitorJSONBlockStream, "vdb", "jobname", "backingnode", "backingfilename", 1024)
GEN_TEST_FUNC(qemuMonitorJSONBlockCommit, "vdb", "jobname", "topnode", "basenode", "backingfilename", 1024)
GEN_TEST_FUNC(qemuMonitorJSONDrivePivot, "vdb")
GEN_TEST_FUNC(qemuMonitorJSONScreendump, "devicename", 1, "/foo/bar")