Bacula-users

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

2008-04-22 22:31:55
Subject: Re: [Bacula-users] About Bacula's Windows client
From: Dan Langille <dan AT langille DOT org>
To: xuxu <xuxu AT nrchpc.ac DOT cn>
Date: Tue, 22 Apr 2008 22:31:25 -0400
On Apr 22, 2008, at 9:52 PM, xuxu wrote:
>
> 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.

Are you able to test this to confirm?

>
> 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.
> > 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
>
> -- 
> 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.
> 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
> ---------------------------------------------------------------------- 
> ---
> 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


-- 
Dan Langille -- http://www.langille.org/
dan AT langille DOT org





-------------------------------------------------------------------------
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