[linux-audio-dev] Re: Jussi's Was: info point on linux hdr

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: [linux-audio-dev] Re: Jussi's Was: info point on linux hdr
From: Stephen C. Tweedie (sct_AT_redhat.com)
Date: Wed Apr 26 2000 - 16:14:58 EEST


Hi,

On Fri, Apr 21, 2000 at 08:37:37PM +0200, Benno Senoner wrote:
> that means more than twice as fast.
>
> But I still have my doubts that all blocks gets really allocated:
> for example I can do
> ftruncate(filesize)
> lseek(filesize-4,SEEK_SET)
> write(value,4);
>
> and get an empty file of filesize len,
> but these blocks aren't really allocated since it takes a fraction of
> second to do this.

Correct. Blocks are _never_ allocated on ftruncate, but only on write.
(At least for all the Unix-style filesystems --- filesystems which don't
support holes, like the FAT filesystem, will have to allocate on
ftruncate.)

--Stephen


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Wed Apr 26 2000 - 16:58:38 EEST