]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita240b7eb0ae13a4011cc89664d3fe920ad4bb869
tree7fea6c6bb8ef683b92fcabaa9e3f48ed2ec8eeb0
parentff3bef2717d6a3bc4a4ae20248e3b1a5755e6db1
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/statx/Makefile [deleted file]
samples/statx/test-statx.c [deleted file]
samples/vfs/Makefile [new file with mode: 0644]
samples/vfs/test-fsmount.c [new file with mode: 0644]
samples/vfs/test-statx.c [new file with mode: 0644]