vfs: Add a sample program for the new mount API
authorDavid Howells <dhowells@redhat.com>
Thu, 1 Nov 2018 23:36:32 +0000 (23:36 +0000)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 20 Mar 2019 22:49:06 +0000 (18:49 -0400)
commitf1b5618e013af28b3c78daf424436a79674423c0
tree7fea6c6bb8ef683b92fcabaa9e3f48ed2ec8eeb0
parentcf3cba4a429be43e5527a3f78859b1bfd9ebc5fb
vfs: Add a sample program for the new mount API

Add a sample program to demonstrate fsopen/fsmount/move_mount to mount
something.

To make it compile on all arches, irrespective of whether or not syscall
numbers are assigned, define the syscall number to -1 if it isn't to cause
the kernel to return -ENOSYS.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
samples/Kconfig
samples/Makefile
samples/vfs/Makefile [moved from samples/statx/Makefile with 55% similarity]
samples/vfs/test-fsmount.c [new file with mode: 0644]
samples/vfs/test-statx.c [moved from samples/statx/test-statx.c with 96% similarity]