mirror of https://github.com/xemu-project/xemu.git
qga/win/vss: requester_freeze changes
Change requester_freeze so that the VSS backup type queried from the registry Signed-off-by: Kfir Manor <kfir@daynix.com> Reviewed-by: Konstantin Kostiuk <kkostiuk@redhat.com> Signed-off-by: Konstantin Kostiuk <kkostiuk@redhat.com>
This commit is contained in:
parent
410542d4a2
commit
0961f929c6
|
@ -285,6 +285,7 @@ void requester_freeze(int *num_vols, void *mountpoints, ErrorSet *errset)
|
||||||
DWORD wait_status;
|
DWORD wait_status;
|
||||||
int num_fixed_drives = 0, i;
|
int num_fixed_drives = 0, i;
|
||||||
int num_mount_points = 0;
|
int num_mount_points = 0;
|
||||||
|
VSS_BACKUP_TYPE vss_bt = get_vss_backup_type();
|
||||||
|
|
||||||
if (vss_ctx.pVssbc) { /* already frozen */
|
if (vss_ctx.pVssbc) { /* already frozen */
|
||||||
*num_vols = 0;
|
*num_vols = 0;
|
||||||
|
@ -332,7 +333,7 @@ void requester_freeze(int *num_vols, void *mountpoints, ErrorSet *errset)
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
hr = vss_ctx.pVssbc->SetBackupState(true, true, VSS_BT_FULL, false);
|
hr = vss_ctx.pVssbc->SetBackupState(true, true, vss_bt, false);
|
||||||
if (FAILED(hr)) {
|
if (FAILED(hr)) {
|
||||||
err_set(errset, hr, "failed to set backup state");
|
err_set(errset, hr, "failed to set backup state");
|
||||||
goto out;
|
goto out;
|
||||||
|
|
Loading…
Reference in New Issue