[PATCH 0/3] tools/nolibc: add support for ftruncate()

Thomas Weißschuh posted 3 patches 3 days, 1 hour ago
tools/include/nolibc/arch-arm.h                | 10 +++++
tools/include/nolibc/arch-mips.h               | 12 ++++++
tools/include/nolibc/arch-powerpc.h            | 12 ++++++
tools/include/nolibc/sys.h                     | 11 ++++++
tools/include/nolibc/unistd.h                  | 24 ++++++++++++
tools/testing/selftests/nolibc/Makefile.nolibc |  1 +
tools/testing/selftests/nolibc/nolibc-test.c   | 52 ++++++++++++++++++++++++++
7 files changed, 122 insertions(+)
[PATCH 0/3] tools/nolibc: add support for ftruncate()
Posted by Thomas Weißschuh 3 days, 1 hour ago
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
---
Daniel Palmer (1):
      tools/nolibc: add a helper to split a 64-bit argument into 32-bit halves

Thomas Weißschuh (2):
      selftests/nolibc: enable CONFIG_TMPFS for sparc32
      tools/nolibc: add ftruncate()

 tools/include/nolibc/arch-arm.h                | 10 +++++
 tools/include/nolibc/arch-mips.h               | 12 ++++++
 tools/include/nolibc/arch-powerpc.h            | 12 ++++++
 tools/include/nolibc/sys.h                     | 11 ++++++
 tools/include/nolibc/unistd.h                  | 24 ++++++++++++
 tools/testing/selftests/nolibc/Makefile.nolibc |  1 +
 tools/testing/selftests/nolibc/nolibc-test.c   | 52 ++++++++++++++++++++++++++
 7 files changed, 122 insertions(+)
---
base-commit: 136ca91411b0b637e862eb7b1cce2a56853edd17
change-id: 20260318-nolibc-ftruncate-063a0ee7e2bf

Best regards,
--  
Thomas Weißschuh <linux@weissschuh.net>

Re: [PATCH 0/3] tools/nolibc: add support for ftruncate()
Posted by Daniel Palmer 2 days, 9 hours ago
Hi Thomas,

On Fri, 22 May 2026 at 02:31, Thomas Weißschuh <linux@weissschuh.net> wrote:
>
> Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
> ---
> Daniel Palmer (1):
>       tools/nolibc: add a helper to split a 64-bit argument into 32-bit halves
>
> Thomas Weißschuh (2):
>       selftests/nolibc: enable CONFIG_TMPFS for sparc32
>       tools/nolibc: add ftruncate()
>
>  tools/include/nolibc/arch-arm.h                | 10 +++++
>  tools/include/nolibc/arch-mips.h               | 12 ++++++
>  tools/include/nolibc/arch-powerpc.h            | 12 ++++++
>  tools/include/nolibc/sys.h                     | 11 ++++++
>  tools/include/nolibc/unistd.h                  | 24 ++++++++++++
>  tools/testing/selftests/nolibc/Makefile.nolibc |  1 +
>  tools/testing/selftests/nolibc/nolibc-test.c   | 52 ++++++++++++++++++++++++++
>  7 files changed, 122 insertions(+)
> ---
> base-commit: 136ca91411b0b637e862eb7b1cce2a56853edd17
> change-id: 20260318-nolibc-ftruncate-063a0ee7e2bf
>
> Best regards,
> --
> Thomas Weißschuh <linux@weissschuh.net>
>

This looks good to me. I'll rebase my fallocate() stuff on this.

FWIW:

Acked-by: Daniel Palmer <daniel@thingy.jp>
Re: [PATCH 0/3] tools/nolibc: add support for ftruncate()
Posted by Thomas Weißschuh 2 days, 4 hours ago
On 2026-05-22 17:48:49+0900, Daniel Palmer wrote:
> On Fri, 22 May 2026 at 02:31, Thomas Weißschuh <linux@weissschuh.net> wrote:
> > Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
> > ---
> > Daniel Palmer (1):
> >       tools/nolibc: add a helper to split a 64-bit argument into 32-bit halves
> >
> > Thomas Weißschuh (2):
> >       selftests/nolibc: enable CONFIG_TMPFS for sparc32
> >       tools/nolibc: add ftruncate()
> >
> >  tools/include/nolibc/arch-arm.h                | 10 +++++
> >  tools/include/nolibc/arch-mips.h               | 12 ++++++
> >  tools/include/nolibc/arch-powerpc.h            | 12 ++++++
> >  tools/include/nolibc/sys.h                     | 11 ++++++
> >  tools/include/nolibc/unistd.h                  | 24 ++++++++++++
> >  tools/testing/selftests/nolibc/Makefile.nolibc |  1 +
> >  tools/testing/selftests/nolibc/nolibc-test.c   | 52 ++++++++++++++++++++++++++
> >  7 files changed, 122 insertions(+)
> > ---
> > base-commit: 136ca91411b0b637e862eb7b1cce2a56853edd17
> > change-id: 20260318-nolibc-ftruncate-063a0ee7e2bf
> >
> > Best regards,
> > --
> > Thomas Weißschuh <linux@weissschuh.net>
> >
> 
> This looks good to me. I'll rebase my fallocate() stuff on this.
> 
> FWIW:
> 
> Acked-by: Daniel Palmer <daniel@thingy.jp>

Thanks!

Acked-by is for maintainers to use on changes within their subsystems.
I'll make this a Reviewed-by instead. Yell at me if you object.


Thomas
Re: [PATCH 0/3] tools/nolibc: add support for ftruncate()
Posted by Daniel Palmer 1 day, 20 hours ago
Hi Thomas,

On Fri, 22 May 2026 at 23:41, Thomas Weißschuh <linux@weissschuh.net> wrote:

> > Acked-by: Daniel Palmer <daniel@thingy.jp>
>
> Thanks!
>
> Acked-by is for maintainers to use on changes within their subsystems.
> I'll make this a Reviewed-by instead. Yell at me if you object.

Today I learned. :) I thought Acked-by was like a less strong Reviewed-by.
Anyhow I looked through, Ran the tests again with my fallocate()
rebased on top and it works:

Reviewed-by: Daniel Palmer <daniel@thingy.jp>
Re: [PATCH 0/3] tools/nolibc: add support for ftruncate()
Posted by Willy Tarreau 2 days, 15 hours ago
Hi Thomas!

On Thu, May 21, 2026 at 07:31:01PM +0200, Thomas Weißschuh wrote:
> Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>

Looks good, thanks for putting all this work together.

Acked-by: Willy Tarreau <w@1wt.eu>

willy