diff options
author | David Howells <dhowells@redhat.com> | 2018-11-01 19:36:32 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2019-03-20 18:49:06 -0400 |
commit | f1b5618e013af28b3c78daf424436a79674423c0 (patch) | |
tree | 7fea6c6bb8ef683b92fcabaa9e3f48ed2ec8eeb0 /samples/Kconfig | |
parent | cf3cba4a429be43e5527a3f78859b1bfd9ebc5fb (diff) |
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>
Diffstat (limited to 'samples/Kconfig')
-rw-r--r-- | samples/Kconfig | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/samples/Kconfig b/samples/Kconfig index d19754ccad08..30a89425009c 100644 --- a/samples/Kconfig +++ b/samples/Kconfig | |||
@@ -154,10 +154,11 @@ config SAMPLE_ANDROID_BINDERFS | |||
154 | Builds a sample program to illustrate the use of the Android binderfs | 154 | Builds a sample program to illustrate the use of the Android binderfs |
155 | filesystem. | 155 | filesystem. |
156 | 156 | ||
157 | config SAMPLE_STATX | 157 | config SAMPLE_VFS |
158 | bool "Build example extended-stat using code" | 158 | bool "Build example programs that use new VFS system calls" |
159 | depends on BROKEN | ||
160 | help | 159 | help |
161 | Build example userspace program to use the new extended-stat syscall. | 160 | Build example userspace programs that use new VFS system calls such |
161 | as mount API and statx(). Note that this is restricted to the x86 | ||
162 | arch whilst it accesses system calls that aren't yet in all arches. | ||
162 | 163 | ||
163 | endif # SAMPLES | 164 | endif # SAMPLES |