View Issue Details

IDProjectCategoryView StatusLast Update
0000562bareos-corefile daemonpublic2017-06-08 15:28
Reporterrhillmann Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
PlatformWindowsOS2012 R2OS Version8
Product Version15.2.1 
Fixed in Version16.2.4 
Summary0000562: VSS Plugin is missing method IVssBackupComponents::SetBackupSucceeded
DescriptionThe VSS Plugin doesnt reply to the Vss writers that a backup has been suceeded.
This is a problem for backup scenarios such like Exchange, which needs to be informed that a backup has been successfull (for example the LastFullBack Propertie in the Mailbox or purging the logs)
While discovering the problem in the source code, i figured out that the method SetBackupSucceeded is not implemented (Which replies to the vss writer and is required for Application feedback).

Quote from MS:
"Therefore, a well-behaved backup application (requester) must call SetBackupSucceeded after each component has been processed and prior to calling IVssBackupComponents::BackupComplete."

https://msdn.microsoft.com/en-us/library/aa382838(v=vs.85).aspx
TagsNo tags attached.

Activities

mvwieringen

mvwieringen

2016-06-17 19:22

developer   ~0002302

Fix committed to bareos master branch with changesetid 6390.

Related Changesets

bareos: master 8b1c713b

2016-06-13 19:43

mvwieringen

Ported: N/A

Details Diff
vss: Fix IVssBackupComponents::SetBackupState call

We currently always call the IVssBackupComponents::SetBackupState method
with the arguments bSelectComponents and bBackupBootableSystemState set
to true. This indicates that we do a backup or restore operation in
component mode and that a bootable system state backup is being
performed. This is not really true until we fully implement the whole
VSS API in a new dedicated VSS plugin. As such this patch adds a new
event bEventVssSetBackupState which is raised when normally a
IVssBackupComponents::SetBackupState call is done the plugin can
register this event and implement its own call to
IVssBackupComponents::SetBackupState with the options it want to set and
return an bRC_Skip to let the core not call the method.

This patch also adds a new event named bEventVssPrepareForBackup which is
raised just before a call to IVssBackupComponents::PrepareForBackup is
done.

Fixes 0000562: VSS Plugin is missing method
IVssBackupComponents::SetBackupSucceeded
Affected Issues
0000562
mod - src/filed/fd_plugins.h Diff File
mod - src/plugins/filed/bareos_fd_consts.py Diff File
mod - src/win32/filed/vss_generic.c Diff File

Issue History

Date Modified Username Field Change
2015-11-12 00:05 rhillmann New Issue
2016-01-11 15:03 pstorz Status new => acknowledged
2016-06-17 19:22 mvwieringen Changeset attached => bareos master 8b1c713b
2016-06-17 19:22 mvwieringen Note Added: 0002302
2016-06-17 19:22 mvwieringen Status acknowledged => resolved
2016-06-17 19:22 mvwieringen Resolution open => fixed
2017-06-08 15:28 joergs Status resolved => closed
2017-06-08 15:28 joergs Fixed in Version => 16.2.4