qemu: driver: Reformat helpers for saving VM state
Rewrap argument definition of qemuDomainSaveInternal and align argument in the invocation of the aforementioned function in qemuDomainManagedSaveHelper. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
d051e0623c
commit
49aca0a845
@ -2620,9 +2620,12 @@ qemuDomainGetControlInfo(virDomainPtr dom,
|
|||||||
*/
|
*/
|
||||||
static int
|
static int
|
||||||
qemuDomainSaveInternal(virQEMUDriver *driver,
|
qemuDomainSaveInternal(virQEMUDriver *driver,
|
||||||
virDomainObj *vm, const char *path,
|
virDomainObj *vm,
|
||||||
int compressed, virCommand *compressor,
|
const char *path,
|
||||||
const char *xmlin, unsigned int flags)
|
int compressed,
|
||||||
|
virCommand *compressor,
|
||||||
|
const char *xmlin,
|
||||||
|
unsigned int flags)
|
||||||
{
|
{
|
||||||
g_autofree char *xml = NULL;
|
g_autofree char *xml = NULL;
|
||||||
bool was_running = false;
|
bool was_running = false;
|
||||||
@ -2785,7 +2788,7 @@ qemuDomainManagedSaveHelper(virQEMUDriver *driver,
|
|||||||
VIR_INFO("Saving state of domain '%s' to '%s'", vm->def->name, path);
|
VIR_INFO("Saving state of domain '%s' to '%s'", vm->def->name, path);
|
||||||
|
|
||||||
if (qemuDomainSaveInternal(driver, vm, path, compressed,
|
if (qemuDomainSaveInternal(driver, vm, path, compressed,
|
||||||
compressor, dxml, flags) < 0)
|
compressor, dxml, flags) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
vm->hasManagedSave = true;
|
vm->hasManagedSave = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user