mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
qga: unset frozen state if no mount points are frozen
If we set mountpoints to qmp_guest_fsfreeze_freeze_list, we may got nothing to freeze as all mountpoints are not valid. So call ga_unset_frozen in this senario. Also, if we return 0 frozen fs, there is no need to call guest-fsfreeze-thaw. Cc: Michael Roth <mdroth@linux.vnet.ibm.com> Signed-off-by: Chen Hanxiao <chenhanxiao@gmail.com> Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
This commit is contained in:
parent
b07cd3e748
commit
65650f0182
2 changed files with 9 additions and 1 deletions
|
@ -1274,6 +1274,12 @@ int64_t qmp_guest_fsfreeze_freeze_list(bool has_mountpoints,
|
|||
}
|
||||
|
||||
free_fs_mount_list(&mounts);
|
||||
/* We may not issue any FIFREEZE here.
|
||||
* Just unset ga_state here and ready for the next call.
|
||||
*/
|
||||
if (i == 0) {
|
||||
ga_unset_frozen(ga_state);
|
||||
}
|
||||
return i;
|
||||
|
||||
error:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue