summaryrefslogtreecommitdiffstats
path: root/samples/vfs
Commit message (Collapse)AuthorAgeFilesLines
* samples: guard sub-directories with CONFIG optionsMasahiro Yamada2019-05-181-1/+1
| | | | | | | | | | | | Do not descend to sub-directories when unneeded. I used subdir-$(CONFIG_...) for hidraw, seccomp, and vfs because they only contain host programs. While we are here, let's add SPDX License tag, and sort the directories alphabetically. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
* Add gitignore file for samples/vfs/ generated filesLinus Torvalds2019-05-141-0/+2
| | | | | | | | | | | Commit f1b5618e013a ("vfs: Add a sample program for the new mount API") added sample programs that get built during the kernel build, but then cause 'git status' to worry about whether the resulting binaries should be managed by git. Tell git not to worry, and to ignore the sample binaries. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
* vfs: Add a sample program for the new mount APIDavid Howells2019-03-203-0/+410
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>