Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

selftests/nolibc: create /dev/full when running as PID 1

An upcoming testcase will use /dev/full.

Make sure it is always present.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Acked-by: Willy Tarreau <w@1wt.eu>
Link: https://lore.kernel.org/r/20250704-nolibc-printf-error-v1-1-74b7a092433b@linutronix.de
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>

authored by

Thomas Weißschuh and committed by
Thomas Weißschuh
2b1ed5f7 7c02bc40

+3 -1
+3 -1
tools/testing/selftests/nolibc/nolibc-test.c
··· 1778 1778 if (stat("/dev/.", &stat_buf) == 0 || mkdir("/dev", 0755) == 0) { 1779 1779 if (stat("/dev/console", &stat_buf) != 0 || 1780 1780 stat("/dev/null", &stat_buf) != 0 || 1781 - stat("/dev/zero", &stat_buf) != 0) { 1781 + stat("/dev/zero", &stat_buf) != 0 || 1782 + stat("/dev/full", &stat_buf) != 0) { 1782 1783 /* try devtmpfs first, otherwise fall back to manual creation */ 1783 1784 if (mount("/dev", "/dev", "devtmpfs", 0, 0) != 0) { 1784 1785 mknod("/dev/console", 0600 | S_IFCHR, makedev(5, 1)); 1785 1786 mknod("/dev/null", 0666 | S_IFCHR, makedev(1, 3)); 1786 1787 mknod("/dev/zero", 0666 | S_IFCHR, makedev(1, 5)); 1788 + mknod("/dev/full", 0666 | S_IFCHR, makedev(1, 7)); 1787 1789 } 1788 1790 } 1789 1791 }