Re: libDAR skips files above 3 KB - Please help
Satheesh <satheesh_sskzm-/[email protected]> Mon, 28 Apr 2008 17:14:51 +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: > > >>> ::read is failing for files above ~3.2 K only. > >> If ::read is failing, this has for consequence to make > >> fichier::inherited_read to fail also. The question is thus why ::read > >> fails? Maybe one argument is out of range? I wonder in particular if the > >> amount of data read at once is not exceeding the system's capabilities. > >> As you can read at the top of src/libdar/generic_file.cpp, this amount > >> is 10 kbytes unless this value is over the value given by the SSIZE_MAX > >> system macro (if it exists), in which case it takes this value. > >> Does your system defines such a macro? Can you try a simple C (or C++) > >> program with smaller values (a few bytes for example) on a large file. > >>> I verified the same use-case on > >>> RH Linux EL4 on x86 where this problem do not happen. I am using libdar > >>> version 2.3.6. > >> Yep, this only shows that the problem is either internal to the system > >> or that dar is not adapted to that system. I think you missed my response to the previous problem that I had inserted in between text. My system defines SSIZE_MAX macro as 2147483647. Obviously, dar was using 102400 (It's 100K, right ?). So I reduced it to 10240 and it all started working. Thanks a lot..Will let you know on what I find with stat. I use gdb - but I haven't yet tried to debug the issue with stat. > >>> 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