tmpfs: test link accounting with O_TMPFILE
A message that is not in the archive (sent off-list or not yet received): 20190219210900.vYcks%[email protected]
PATCH 1/1 tmpfs: test link accounting with O_TMPFILE
Mount tmpfs with "nr_inodes=3" for easy check.
Signed-off-by Alexey Dobriyan <[email protected]>
---
-ENOTEST
fold into tmpfs-fix-link-accounting-when-a-tmpfile-is-linked-in.patch
tools/testing/selftests/Makefile | 1 tools/testing/selftests/tmpfs/.gitignore | 1 tools/testing/selftests/tmpfs/Makefile | 7 ++ tools/testing/selftests/tmpfs/bug-link-o-tmpfile.c | 67 +++++++++++++++++++++ 4 files changed, 76 insertions(+)
tools/testing/selftests/Makefile +1 -0
@@ -48,6 +48,7 @@ TARGETS += sysctl ifneq (1, $(quicktest)) TARGETS += timers endif +TARGETS += tmpfs TARGETS += user TARGETS += vm TARGETS += x86
new file mode 100644
tools/testing/selftests/tmpfs/.gitignore new file +1 -0
@@ -0,0 +1 @@ +/bug-link-o-tmpfile
new file mode 100644
tools/testing/selftests/tmpfs/Makefile new file +7 -0
@@ -0,0 +1,7 @@ +CFLAGS += -Wall -O2 +CFLAGS += -D_GNU_SOURCE + +TEST_GEN_PROGS := +TEST_GEN_PROGS += bug-link-o-tmpfile + +include ../lib.mk
new file mode 100644
tools/testing/selftests/tmpfs/bug-link-o-tmpfile.c new file +67 -0
67 lines not on this page · raw message