public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/2] nolibc: Add fallocate()
@ 2026-04-30 16:41 Daniel Palmer
  2026-04-30 16:41 ` [PATCH v3 1/2] tools/nolibc: fcntl: " Daniel Palmer
                   ` (3 more replies)
  0 siblings, 4 replies; 17+ messages in thread
From: Daniel Palmer @ 2026-04-30 16:41 UTC (permalink / raw)
  To: w, linux; +Cc: linux-kernel, Daniel Palmer

While poking around with my "static PIE for nommu" series I found
I needed fallocate(). Implementing it turned out a bit more
interesting than I thought it would be due to how the offset and
size need to be passed on 32bit machines.

v3:
 - Reworked the test a bit, ran it on all the targets I could get
   to run (s390, loongarch and sh currently don't work for me).
   sparc32 doesn't seem to support fallocate() so made it skip
   the test.
 - Rebase on nolibc/for-next with the large file support bits.

v2:
 - Addressed Thomas' comments
 - Trial and error'd a test for the arguments being passed correctly.
   Hopefully someone smarter than I am can tell if it actually works.

Daniel Palmer (2):
  tools/nolibc: fcntl: Add fallocate()
  selftests/nolibc: Add a very basic test for fallocate()

 tools/include/nolibc/arch-mips.h             | 11 ++++
 tools/include/nolibc/fcntl.h                 | 33 ++++++++++
 tools/include/nolibc/sys.h                   |  8 +++
 tools/testing/selftests/nolibc/nolibc-test.c | 69 ++++++++++++++++++++
 4 files changed, 121 insertions(+)

-- 
2.53.0


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2026-05-05  2:20 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-30 16:41 [PATCH v3 0/2] nolibc: Add fallocate() Daniel Palmer
2026-04-30 16:41 ` [PATCH v3 1/2] tools/nolibc: fcntl: " Daniel Palmer
2026-05-01  8:18   ` David Laight
2026-05-02  3:00     ` Willy Tarreau
2026-05-02 21:26       ` David Laight
2026-05-03 16:28         ` Thomas Weißschuh
2026-05-03 22:38           ` David Laight
2026-04-30 16:41 ` [PATCH v3 2/2] selftests/nolibc: Add a very basic test for fallocate() Daniel Palmer
2026-05-02  3:04   ` Willy Tarreau
2026-05-02  4:00     ` Daniel Palmer
2026-05-02  4:40       ` Willy Tarreau
2026-05-03 16:20   ` Thomas Weißschuh
2026-05-02  3:05 ` [PATCH v3 0/2] nolibc: Add fallocate() Willy Tarreau
2026-05-03 16:21 ` Thomas Weißschuh
2026-05-04  1:46   ` Daniel Palmer
2026-05-04 15:33     ` Thomas Weißschuh
2026-05-05  2:20       ` Daniel Palmer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox