Bacula-users

Re: [Bacula-users] About Bacula's Windows client

2008-04-22 21:53:07
Subject: Re: [Bacula-users] About Bacula's Windows client
From: "xuxu" <xuxu AT nrchpc.ac DOT cn>
To: "Arno Lehmann" <al AT its-lehmann DOT de>, "bacula" <bacula-users AT lists.sourceforge DOT net>
Date: Wed, 23 Apr 2008 09:52:25 +0800
 
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
 
 
2008-04-23

xuxu

发件人: Arno Lehmann
发送时间: 2008-04-22  18:15:07
收件人: bacula
抄送:
主题: Re: [Bacula-users] About Bacula's Windows client
Hello,
 
22.04.2008 07:48, xuxu wrote:
> Hello,
> When I use bacula's Windows client to do some recovery task in Windows 
> XP, I find that the memory it used will increase with job's number. That 
> is to say, the memory which client used will always increase and not 
> decrease when I do a new recovery job. I'm afraid it would cost all of 
> my memory. But when I do some portable recovery(don't use backupwirte 
> API), the memory will be normal.
> So I want to kown whether this is a bug. And Whether backupwrite API 
> will lead to this problem?
 
That indeed looks like a bug.
 
Wether is is in the FD or Windows' API is not easily determined.
 
I suggest you file a bug report with some more details (Bacula and OS 
version, memory usage statistics and output from 'status client=' to 
clearly show the problem.
 
Note that it can take a while before this bug would be processed - 
Kern is on vacation, and I'm not sure we have any windows-gurus among 
the developers.
 
Arno
 
> Thank you very much.
>  
>  
> 2008-04-22
> xuxu
> ------------------------------------------------------------------------
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
> Don't miss this year's exciting event. There's still time to save $100. 
> Use priority code J8TL2D2. 
> ------------------------------------------------------------------------
> _______________________________________________
> Bacula-users mailing list
> Bacula-users AT lists.sourceforge DOT net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
 
-- 
Arno Lehmann
IT-Service Lehmann
www.its-lehmann.de
 
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users