mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-07-06 09:55:46 +00:00
qemu: use guest-fsfreeze-freeze-list command if mountpoints to freeze specified
A command to freeze a part of mounted file systems is implemented in upstream QEMU-guest-agent with a name of 'guest-fsfreeze-freeze-list'. This fixes the name of the command used to partial fsfreeze in qemu driver when 'mountpoints' option is specified to virDomainFSFreeze API. Signed-off-by: Tomoki Sekiyama <tomoki.sekiyama@hds.com>
This commit is contained in:
parent
337c6eec1b
commit
09dbb47832
@ -1336,7 +1336,7 @@ int qemuAgentFSFreeze(qemuAgentPtr mon, const char **mountpoints,
|
|||||||
if (!arg)
|
if (!arg)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
cmd = qemuAgentMakeCommand("guest-fsfreeze-freeze",
|
cmd = qemuAgentMakeCommand("guest-fsfreeze-freeze-list",
|
||||||
"a:mountpoints", arg, NULL);
|
"a:mountpoints", arg, NULL);
|
||||||
} else {
|
} else {
|
||||||
cmd = qemuAgentMakeCommand("guest-fsfreeze-freeze", NULL);
|
cmd = qemuAgentMakeCommand("guest-fsfreeze-freeze", NULL);
|
||||||
|
@ -45,7 +45,7 @@ testQemuAgentFSFreeze(const void *data)
|
|||||||
if (qemuMonitorTestAddAgentSyncResponse(test) < 0)
|
if (qemuMonitorTestAddAgentSyncResponse(test) < 0)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
||||||
if (qemuMonitorTestAddItem(test, "guest-fsfreeze-freeze",
|
if (qemuMonitorTestAddItem(test, "guest-fsfreeze-freeze-list",
|
||||||
"{ \"return\" : 5 }") < 0)
|
"{ \"return\" : 5 }") < 0)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user