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>
Showing
- samples/Kconfig 5 additions, 4 deletionssamples/Kconfig
- samples/Makefile 1 addition, 1 deletionsamples/Makefile
- samples/vfs/Makefile 4 additions, 1 deletionsamples/vfs/Makefile
- samples/vfs/test-fsmount.c 133 additions, 0 deletionssamples/vfs/test-fsmount.c
- samples/vfs/test-statx.c 10 additions, 1 deletionsamples/vfs/test-statx.c
Loading
Please register or sign in to comment