samples/vfs: check whether flag was raised
authorChristian Brauner <brauner@kernel.org>
Tue, 4 Feb 2025 11:27:48 +0000 (12:27 +0100)
committerChristian Brauner <brauner@kernel.org>
Wed, 12 Feb 2025 11:12:27 +0000 (12:12 +0100)
commita496dfecbc47253012f1e10d01110428bb9dc118
tree82b35b304b1f155f82265b47b610adb174aeaa95
parent37c4a9590e1efcae7749682239fc22a330d2d325
samples/vfs: check whether flag was raised

For string options the kernel will raise the corresponding flag only if
the string isn't empty. So check for the flag.

Link: https://lore.kernel.org/r/20250204-work-mnt_idmap-statmount-v2-3-007720f39f2e@kernel.org
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
samples/vfs/test-list-all-mounts.c