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 > > --