linux: Add tst-mount to check for Linux new mount API
commitc3b02b6567e5709614eb24c85c3c0b69ae5c58a6
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Fri, 24 Jun 2022 19:59:18 +0000 (24 16:59 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 5 Jul 2022 13:08:48 +0000 (5 10:08 -0300)
treeef30a7fe8e41c8250329da7b3b51fad4ffa9ecce
parent78a408ee7ba041fc8d5dbd5f67065b4a982c11e5
linux: Add tst-mount to check for Linux new mount API

The new mount API was added on Linux 5.2 with six new syscalls:
fsopen, fsconfig, fsmount, move_mount, fspick, and open_tree.

The new test verifies minimal functionality along with error paths
for specific arguments and their corner cases.

Checked on x86_64-linux-gnu.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
sysdeps/unix/sysv/linux/Makefile
sysdeps/unix/sysv/linux/tst-mount.c [new file with mode: 0644]