Subject: Re: bug#9500: [PATCH]: use posix_fallocate where supported

From: Goswin von Brederlow <[email-masked]>
Date: Sat, 26 Nov 2011 04:48:36 +0100

Pádraig Brady <[email-masked]> writes:

> Hmm, one of your points above got me thinking.
> Might fallocate() fail to allocate an extent with ENOSPC,
> but there could be fragmented space available to write()?
> That would scupper benefit (2) above :(
> I'll ask [email-masked]
>
> cheers,
> Pádraig.

fallocate() in no way garanties that the space is continious. Any
filesystem that is halfway smart will use a continious chunk if
possible. But it should only fail if there is really no space, no matter
how fragmented, left.

MfG
        Goswin