You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the source code, after pre and post restore, CheckSelectedWriterStatus() is called to check status of writers. I've copied snippet of code here for prerestore -
// Issue a PreRestore event to the writers
m_vssClient.PreRestore();
// Execute the optional custom command between PreRestore and PostRestoretry
{
// Check selected writer status
m_vssClient.CheckSelectedWriterStatus();
// Check the status for all selected writersvoidVssClient::CheckSelectedWriterStatus()
{
FunctionTracer ft(DBG_INFO);
if ((m_dwContext & VSS_VOLSNAP_ATTR_NO_WRITERS) != 0)
return;
Here, the if condition is true in case of restore and hence checking writer status is actually skipped.
If I comment out this if condition and try to perform restore which is supposed to fail in prerestore, it actually fails.
The text was updated successfully, but these errors were encountered:
In the source code, after pre and post restore,
CheckSelectedWriterStatus()
is called to check status of writers. I've copied snippet of code here for prerestore -As per the microsoft documentation, after pre-restore, we need to verify writer status - https://learn.microsoft.com/en-us/windows/win32/vss/overview-of-preparing-for-restore
Here is code of
CheckSelectedWriterStatus
-Here, the if condition is true in case of restore and hence checking writer status is actually skipped.
If I comment out this if condition and try to perform restore which is supposed to fail in prerestore, it actually fails.
The text was updated successfully, but these errors were encountered: