qga: Make errp the last parameter of qga_vss_fsfreeze
Signed-off-by: Fam Zheng <famz@redhat.com> Message-Id: <20170421122710.15373-14-famz@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
parent
bbfb89e38c
commit
4462a5307b
@ -768,7 +768,7 @@ int64_t qmp_guest_fsfreeze_freeze(Error **errp)
|
|||||||
/* cannot risk guest agent blocking itself on a write in this state */
|
/* cannot risk guest agent blocking itself on a write in this state */
|
||||||
ga_set_frozen(ga_state);
|
ga_set_frozen(ga_state);
|
||||||
|
|
||||||
qga_vss_fsfreeze(&i, &local_err, true);
|
qga_vss_fsfreeze(&i, true, &local_err);
|
||||||
if (local_err) {
|
if (local_err) {
|
||||||
error_propagate(errp, local_err);
|
error_propagate(errp, local_err);
|
||||||
goto error;
|
goto error;
|
||||||
@ -807,7 +807,7 @@ int64_t qmp_guest_fsfreeze_thaw(Error **errp)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
qga_vss_fsfreeze(&i, errp, false);
|
qga_vss_fsfreeze(&i, false, errp);
|
||||||
|
|
||||||
ga_unset_frozen(ga_state);
|
ga_unset_frozen(ga_state);
|
||||||
return i;
|
return i;
|
||||||
|
@ -145,7 +145,7 @@ void ga_uninstall_vss_provider(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Call VSS requester and freeze/thaw filesystems and applications */
|
/* Call VSS requester and freeze/thaw filesystems and applications */
|
||||||
void qga_vss_fsfreeze(int *nr_volume, Error **errp, bool freeze)
|
void qga_vss_fsfreeze(int *nr_volume, bool freeze, Error **errp)
|
||||||
{
|
{
|
||||||
const char *func_name = freeze ? "requester_freeze" : "requester_thaw";
|
const char *func_name = freeze ? "requester_freeze" : "requester_thaw";
|
||||||
QGAVSSRequesterFunc func;
|
QGAVSSRequesterFunc func;
|
||||||
|
@ -21,6 +21,6 @@ bool vss_initialized(void);
|
|||||||
int ga_install_vss_provider(void);
|
int ga_install_vss_provider(void);
|
||||||
void ga_uninstall_vss_provider(void);
|
void ga_uninstall_vss_provider(void);
|
||||||
|
|
||||||
void qga_vss_fsfreeze(int *nr_volume, Error **errp, bool freeze);
|
void qga_vss_fsfreeze(int *nr_volume, bool freeze, Error **errp);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user