Jon LaBadie wrote:
> On Fri, Jun 28, 2002 at 02:35:09PM +0100, Martin Hepworth wrote:
> 
>>>Try ftp://alpha.gnu.org/pub/gnu/tar/
>>>
>>
>>Jon
>>
>>Ok got it, compiled it with the change you recommended and put it in a 
>>different location from the MacOSX one.
>>
>>Recoompiled amanda client to point and the new tar and will test 
>>overnight...
>>
> 
> 
> 
> Martin,
> Just came up with a different approach.  Helps to look at the amanda source :(
> 
> In directory client-src, the two files sendbackup.c and sendbackup-gnutar.c
> each have a conditionally compiled in section as follows:
> 
> === sendbackup.c (approx line 1000) ===
> 
>  
>       #ifdef IGNORE_TAR_ERRORS
>           if(pid == tarpid) {
>               /*
>                * tar bitches about active filesystems, but we do not care.
>                */
>               if(ret == 2) {
>                   rc = 0;
>               }
>           }
>       #endif                                                                         
>                                                                              
> 
> === sendbackup-gnutar.c (approx line 520) ===
>  
>         /* GNUTAR produces a few error messages when files are modified or
>            removed while it is running.  They may cause data to be lost, but
>            then they may not.  We shouldn't consider them NORMAL until
>            further investigation.  */
>       #ifdef IGNORE_TAR_ERRORS
>         { DMP_NORMAL, ": File .* shrunk by [0-9][0-9]* bytes, padding with zeros", 1 
>},
>         { DMP_NORMAL, ": Cannot add file .*: No such file or directory$", 1},
>         { DMP_NORMAL, ": Error exit delayed from previous errors", 1},
>       #endif 
> 
> 
> 
> I think, if add a "#define IGNORE_TAR_ERRORS" in sendbackup.h, amanda.h, or each of
> the two ".c" files, this should stop the problem you are seeing without modifying 
>tar.
> 

Jon

Ok I'll see how things went when I'm back at on Monday.

I'll also try this one anyway then I can use the stock MacOSX gnutar 
program.

Now, would it be possible to have this option definable at run time, 
possibly from the amanda.conf, perhaps as part of the backup type 
definition?

In fact having alot of the compile time stuff (which dump, tar, smb 
program etc) available in at client side amanda.conf would be a really, 
really useful feature for me. What do you guys think?

--
Martin


Reply via email to