lkml.org 
[lkml]   [2026]   [May]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v3 2/2] selftests/nolibc: Add a very basic test for fallocate()
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

\
 
 \ /
  Last update: 2026-05-02 05:04    [from the cache]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and my Meterkast|Read the blog