Hello,
I have been study bacula's
source code yesterday. And I find that the BackupWrite API would be used
wrong.
In msdn, this API's
describe says that this function allocates memory
for the IpContext data structure, and then sets the variable to
point to that strucure. To release the memory used by the data structure, call
BackupWrite with the bAbort paramter set to TRUE when the restore operation is
complete.
I find that bacula seems just
to use bwrite() function to write and not call this API again when restore
finished.
I think that just adding this
API with setting bAort and IpContext paramters when the restore
operation is complete will solve this problem.
Best regards
xuxu