Re: libDAR skips files above 3 KB - Please help

Satheesh <satheesh_sskzm-/[email protected]> Wed, 30 Apr 2008 19:17:54 +0000 (UTC)
Newsgroups gmane.comp.sysutils.backup.dar.libdar
Message-ID <[email protected]>
Denis Corbin <dar.linux@...> writes:

> 
> 
> Satheesh wrote:
> > Denis Corbin <dar.linux@...> writes:
> > 
> Sorry, you're right, I missed your response. So this is a good news!
> However there is something I don't understand:
> Dar does the following:
> transfer at most 102400 ( = 100K) unless SSIZE_MAX exist and is smaller
> than this value in which case dar transfer at most SSIZE_MAX bytes. I
> just do no understand how replacing 2147483647 ( = 2^31 - 1) by 102400
> could solve the problem, unless this value has been considered as a
> negative value by the compiler... ?
> 
> > 

I didn't replace SSIZE_MAX but I modified your macro in generic_file.cpp - 
#define BUFFER_SIZE 102400
Changed to 
#define BUFFER_SIZE 10240

Regd stat, it's return value is always -1 (error) and errno prints out 
as "Error Code: 0". I also noticed that "stat" call is failing only from child 
thread but not when libdar called from the main process. I tried to make a 
dummy "stat" call inside "sar::open_writeonly" function to another directory 
but with the same effect. So it just fails for any directory from child thread.

> > 
> > 
> >>>>> Regards,
> >>>>> Satheesh
> >>>>>
> >>>> Regards,
> >>>> Denis.
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > -------------------------------------------------------------------------
> > 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
> > _______________________________________________
> > Dar-libdar_api mailing list
> > Dar-libdar_api@...
> > https://lists.sourceforge.net/lists/listinfo/dar-libdar_api
> > 
> > 
> > 
> 





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