mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
qga-win: add support for qmp_guest_fsfreeze_freeze_list
This patch add support for freeze specified fs. The valid mountpoints list member are [1]: The path of a mounted folder, for example, Y:\MountX\ A drive letter, for example, D:\ A volume GUID path of the form \\?\Volume{GUID}\, where GUID identifies the volume A UNC path that specifies a remote file share, for example, \\Clusterx\Share1\ [1] https://docs.microsoft.com/en-us/windows/desktop/api/vsbackup/nf-vsbackup-ivssbackupcomponents-addtosnapshotset 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
bad0227d3a
commit
0692b03ee1
6 changed files with 91 additions and 45 deletions
|
@ -151,7 +151,7 @@ static void quit_handler(int sig)
|
|||
WaitForSingleObject(hEventTimeout, 0);
|
||||
CloseHandle(hEventTimeout);
|
||||
}
|
||||
qga_vss_fsfreeze(&i, false, &err);
|
||||
qga_vss_fsfreeze(&i, false, NULL, &err);
|
||||
if (err) {
|
||||
g_debug("Error unfreezing filesystems prior to exiting: %s",
|
||||
error_get_pretty(err));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue