[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bacula-devel] Feature Request: Skip size mismatch warning on restore when attributes size = -1


It looks like I never responded to this email, so this is just to let you know 
that I have implemented this in the current SVN (for quite some time now 

Best regards,


On Thursday 04 January 2007 07:26:01 James Harper wrote:
> In restoring data that was backed up by my MSSQL agent to the normal
> filed (it is written in a compatible way), I get the warning that the
> file size is different than what was backed up. This is because I have
> to write the attributes before the data to be compatible with the normal
> fd, but I don't know the size of the file until I've finished reading it
> so I just write out the size as a 0.
> I'd like to suggest that a size of -1 be used in the attributes to
> indicate that the size was unknown at the time of backup and so
> shouldn't be checked on restore. The off_t type which is used in the
> stat structure is signed (at least when large file support is enabled)
> so it should allow this, and the size field in the attributes is only
> used to verify what was written against what was backed up as far as I
> can tell.
> Can anyone think of anything that this might break? As far as I can see
> it's a single change in attribs.c as per the attached patch (which I
> haven't yet tested!).
> Thanks
> James

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-devel mailing list

This mailing list archive is a service of Copilotco.