From 2317cbcc069fb19c4a4c9c3377454c9090c1419f Mon Sep 17 00:00:00 2001 From: jipengfei Date: Tue, 4 Apr 2023 18:36:27 +0800 Subject: [PATCH] qga/win/vss: requester_freeze changes Change requester_freeze so that the VSS backup type queried from the registry cheery-pick from 0961f929c66ceb5e9e95756bfe418b9ef34510eb Signed-off-by: jipengfei_yewu jipengfei_yewu@cmss.chinamobile.com Signed-off-by: Kfir Manor Reviewed-by: Konstantin Kostiuk Signed-off-by: Konstantin Kostiuk --- qga/vss-win32/requester.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qga/vss-win32/requester.cpp b/qga/vss-win32/requester.cpp index 940a2c8f55..418b9b6e4e 100644 --- a/qga/vss-win32/requester.cpp +++ b/qga/vss-win32/requester.cpp @@ -248,6 +248,7 @@ void requester_freeze(int *num_vols, void *mountpoints, ErrorSet *errset) int num_fixed_drives = 0, i; int num_mount_points = 0; + VSS_BACKUP_TYPE vss_bt = get_vss_backup_type(); if (vss_ctx.pVssbc) { /* already frozen */ *num_vols = 0; return; @@ -294,7 +295,7 @@ void requester_freeze(int *num_vols, void *mountpoints, ErrorSet *errset) 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)) { err_set(errset, hr, "failed to set backup state"); goto out; -- Gitee