bug#9500: [PATCH]: use posix_fallocate where supported
From:
Goswin von Brederlow
Subject:
bug#9500: [PATCH]: use posix_fallocate where supported
Date:
Sat, 26 Nov 2011 04:48:36 +0100
User-agent:
Gnus/5.110009 (No Gnus v0.9) XEmacs/21.4.22 (linux, no MULE)
PƔdraig Brady <address@hidden> 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 address@hidden
>
> 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