]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
selftests: always check mask returned by statmount(2)
authorMiklos Szeredi <mszeredi@redhat.com>
Wed, 29 Jan 2025 16:06:41 +0000 (17:06 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 22 Mar 2025 19:54:15 +0000 (12:54 -0700)
commit7963b379a37cf31899735e6b0d7113738d477978
tree9424a257bb6e0cb5573f465b55aaacd9105dd289
parent37e638d4cae4112a19c0dc5b965f3a8feb4b0e27
selftests: always check mask returned by statmount(2)

[ Upstream commit 2cc02059fbc79306b53a44b1f1a4444aa3c76598 ]

STATMOUNT_MNT_OPTS can actually be missing if there are no options.  This
is a change of behavior since 75ead69a7173 ("fs: don't let statmount return
empty strings").

The other checks shouldn't actually trigger, but add them for correctness
and for easier debugging if the test fails.

Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Link: https://lore.kernel.org/r/20250129160641.35485-1-mszeredi@redhat.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/filesystems/statmount/statmount_test.c