On Mon, Feb 18, 2019 at 02:34:23PM +0100, Adam Borowski wrote: > The returned error is ENOMEM rather than POSIX mandated ENOSPC (for > posix_allocate(), but our documentation doesn't mention ENOMEM for > Linux-specific fallocate() either). Returning -ENOMEM rather than -ENOSPC in this situation is clearly wrong, but just about every system call can return -ENOMEM. It might not even be due to memory allocation failure ... these days it's just "I am unusually short on resources, you've done nothing wrong, but I can't handle it right now".