"David Boyes" <[EMAIL PROTECTED]> writes:

>> Bacula *must* read the entire file in order to back it up, so the
>> exact byte count is known with no extra cost.
>
> Umm, not on the OSes I mentioned. If you fstat the file or read the
> directory inode with Unix compatibility on, the underlying OS reads
> the file once to determine the actual file size in bytes to fill
> into the file stat structure in order to be compatible with the
> assumption that files are streams of bytes. You then get to do it
> again to get the actual data blocks.

don't do fstat, then.  the attributes are stored in the catalog after
the file has been sent to the SD, so there's no need to be overly
eager.

-- 
regards,          | Redpill  _
Kjetil T. Homme   | Linpro  (_)


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bacula-devel mailing list
Bacula-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-devel

Reply via email to