Re: [PATCH v3 2/2] selftests/nolibc: Add a very basic test for fallocate()

Willy Tarreau
2026-05-02T03:04:10Z

On Fri, May 01, 2026 at 01:41:25AM +0900, Daniel Palmer wrote:
> 1: Create a tmp file, fallocate() to make it a bit bigger, check the
> size is what was expected.
>
> 2: Try to fallocate() (1 << 20), this should work.
>
> 3: Try to fallocate() (1 << 52), this should cause ENOSPC or EFBIG.

Note that I've already seen one place with more than 4PB on a shared
FS, so I don't know how long such a test could hold true without
causing a havoc. I understand the reason behind the +32 though, and
I'm not worried for the short-to-mid term.

Willy