mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 20:45:18 +00:00
qemu: driver: Remove unused 'driver' from qemuDomainSnapshotFSFreeze/Thaw
Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
9cd03f7957
commit
09afb14a82
@ -14494,8 +14494,7 @@ qemuDomainMigrateStartPostCopy(virDomainPtr dom,
|
|||||||
* is sent but failed, and number of frozen filesystems on success. If -2 is
|
* is sent but failed, and number of frozen filesystems on success. If -2 is
|
||||||
* returned, FSThaw should be called revert the quiesced status. */
|
* returned, FSThaw should be called revert the quiesced status. */
|
||||||
static int
|
static int
|
||||||
qemuDomainSnapshotFSFreeze(virQEMUDriverPtr driver G_GNUC_UNUSED,
|
qemuDomainSnapshotFSFreeze(virDomainObjPtr vm,
|
||||||
virDomainObjPtr vm,
|
|
||||||
const char **mountpoints,
|
const char **mountpoints,
|
||||||
unsigned int nmountpoints)
|
unsigned int nmountpoints)
|
||||||
{
|
{
|
||||||
@ -14514,8 +14513,7 @@ qemuDomainSnapshotFSFreeze(virQEMUDriverPtr driver G_GNUC_UNUSED,
|
|||||||
|
|
||||||
/* Return -1 on error, otherwise number of thawed filesystems. */
|
/* Return -1 on error, otherwise number of thawed filesystems. */
|
||||||
static int
|
static int
|
||||||
qemuDomainSnapshotFSThaw(virQEMUDriverPtr driver G_GNUC_UNUSED,
|
qemuDomainSnapshotFSThaw(virDomainObjPtr vm,
|
||||||
virDomainObjPtr vm,
|
|
||||||
bool report)
|
bool report)
|
||||||
{
|
{
|
||||||
qemuAgentPtr agent;
|
qemuAgentPtr agent;
|
||||||
@ -15615,7 +15613,7 @@ qemuDomainSnapshotCreateActiveExternal(virQEMUDriverPtr driver,
|
|||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
freeze = qemuDomainSnapshotFSFreeze(driver, vm, NULL, 0);
|
freeze = qemuDomainSnapshotFSFreeze(vm, NULL, 0);
|
||||||
qemuDomainObjEndAgentJob(vm);
|
qemuDomainObjEndAgentJob(vm);
|
||||||
|
|
||||||
if (freeze < 0) {
|
if (freeze < 0) {
|
||||||
@ -15744,7 +15742,7 @@ qemuDomainSnapshotCreateActiveExternal(virQEMUDriverPtr driver,
|
|||||||
if (thaw != 0 &&
|
if (thaw != 0 &&
|
||||||
qemuDomainObjBeginAgentJob(driver, vm, QEMU_AGENT_JOB_MODIFY) >= 0 &&
|
qemuDomainObjBeginAgentJob(driver, vm, QEMU_AGENT_JOB_MODIFY) >= 0 &&
|
||||||
virDomainObjIsActive(vm)) {
|
virDomainObjIsActive(vm)) {
|
||||||
if (qemuDomainSnapshotFSThaw(driver, vm, ret == 0 && thaw > 0) < 0) {
|
if (qemuDomainSnapshotFSThaw(vm, ret == 0 && thaw > 0) < 0) {
|
||||||
/* helper reported the error, if it was needed */
|
/* helper reported the error, if it was needed */
|
||||||
if (thaw > 0)
|
if (thaw > 0)
|
||||||
ret = -1;
|
ret = -1;
|
||||||
@ -20295,7 +20293,7 @@ qemuDomainFSFreeze(virDomainPtr dom,
|
|||||||
if (virDomainObjCheckActive(vm) < 0)
|
if (virDomainObjCheckActive(vm) < 0)
|
||||||
goto endjob;
|
goto endjob;
|
||||||
|
|
||||||
ret = qemuDomainSnapshotFSFreeze(driver, vm, mountpoints, nmountpoints);
|
ret = qemuDomainSnapshotFSFreeze(vm, mountpoints, nmountpoints);
|
||||||
|
|
||||||
endjob:
|
endjob:
|
||||||
qemuDomainObjEndAgentJob(vm);
|
qemuDomainObjEndAgentJob(vm);
|
||||||
@ -20336,7 +20334,7 @@ qemuDomainFSThaw(virDomainPtr dom,
|
|||||||
if (virDomainObjCheckActive(vm) < 0)
|
if (virDomainObjCheckActive(vm) < 0)
|
||||||
goto endjob;
|
goto endjob;
|
||||||
|
|
||||||
ret = qemuDomainSnapshotFSThaw(driver, vm, true);
|
ret = qemuDomainSnapshotFSThaw(vm, true);
|
||||||
|
|
||||||
endjob:
|
endjob:
|
||||||
qemuDomainObjEndAgentJob(vm);
|
qemuDomainObjEndAgentJob(vm);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user