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>
This commit is contained in:
Christian Brauner 2026-01-22 11:48:50 +01:00
commit be1ca3ee8f
No known key found for this signature in database
GPG key ID: 91C61BC06578DCA2
3 changed files with 58 additions and 46 deletions