Re: Missing error values in ftruncate and fallocate man pages?

Alejandro Colomar
2026-04-10T17:47:57Z

[-- Attachment #1: Type: text/plain, Size: 852 bytes --]

Hi Zeno,

On 2026-04-10T18:52:29+0200, Zeno Endemann wrote:
> Hello,
>
> I noticed that the man page for truncate(2) does not list the error codes
> ENOSPC and EDQUOT, but I would think those should be potentially possible
> when actually expanding a file (may depend on file system?).
>
> Similarly, fallocate(2) also does not list EDQUOT (ENOSPC is there however).
> Finally, posix_fallocate(3) has no EDQUOT as well, and EIO also seems to be
> missing for this one.
>
> Or am I overlooking something?

Sounds plausible. If you could either perform some experiments or show
the relevant kernel sources that make it possible, we could know for
sure. If you find out it's possible, would you mind sending a patch?

Have a lovely day!
Alex

>
> Thanks,
> Zeno Endemann
>
>

--
<https://www.alejandro-colomar.es>

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]