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

Re: [Bacula-devel] Alternative DB structures-Porposal

"David Boyes" <dboyes@xxxxxxxxxxxxxx> 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

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

This mailing list archive is a service of Copilotco.