Adam Borowski <kilob...@angband.pl> wrote:

> A file that doesn't have a single block allocated for it may thus return
> st_blocks of 0, no matter if it's empty or not.

_before_ you may add data to a file, you need to allocate space for it.
This is what POSIX requires to return with a stat() call.

For this reason, it is impossible that st_blocks is 0 and the file contains 
at least 512 bytes of data.

Jörg

-- 
 EMail:jo...@schily.net                    (home) Jörg Schilling D-13353 Berlin
    joerg.schill...@fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/
 URL: http://cdrecord.org/private/ http://sf.net/projects/schilytools/files/'

Reply via email to