]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests/statmount: add statmount_alloc() helper
authorChristian Brauner <brauner@kernel.org>
Thu, 22 Jan 2026 10:48:50 +0000 (11:48 +0100)
committerChristian Brauner <brauner@kernel.org>
Thu, 12 Mar 2026 12:33:54 +0000 (13:33 +0100)
commitbe1ca3ee8f97067fee87fda73ea5959d5ab75bbf
tree6b8b878ac3e45c3e1672c386c69bad24ade8705f
parentfc1a05de0058bc1dbbc202f6f6cdb25ee0bae16d
selftests/statmount: add statmount_alloc() helper

Add a helper to allocate a statmount buffer and call statmount(). This
helper will be shared by multiple test suites that need to query mount
information via statmount().

Link: https://patch.msgid.link/20260122-work-fsmount-namespace-v1-5-5ef0a886e646@kernel.org
Signed-off-by: Christian Brauner <brauner@kernel.org>
tools/testing/selftests/filesystems/open_tree_ns/open_tree_ns_test.c
tools/testing/selftests/filesystems/statmount/statmount.h
tools/testing/selftests/filesystems/statmount/statmount_test.c