Skip to contentSkip to conversation

tmpfs: test link accounting with O_TMPFILE

PATCH New Alexey Dobriyan 1 participant 1 message Feb 19, 2019 1 message not in the archive Kselftest

lore
Share & tools
lore
#1 lore raw

PATCH 1/1 tmpfs: test link accounting with O_TMPFILE

In reply to a message not in the archive

Mount tmpfs with "nr_inodes=3" for easy check.

---

-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