Adam Borowski <[email protected]> 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:[email protected] (home) Jörg Schilling D-13353 Berlin [email protected] (work) Blog: http://schily.blogspot.com/ URL: http://cdrecord.org/private/ http://sf.net/projects/schilytools/files/'
