diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2017-09-04 10:55:51 +0900 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2017-09-25 14:36:45 +0200 |
commit | 4b9303ec2924f73180408479a0f160868165f756 (patch) | |
tree | 08863493f4d2b7ab55d83327e6996aea790a0f19 /src/basic/mount-util.c | |
parent | 28581c9463c1c26ba5f6282ac898b91283354627 (diff) |
elogind-mount: allow to specify an arbitrary string for arg_mount_what when vfs is used
Fixes #6591.
Diffstat (limited to 'src/basic/mount-util.c')
-rw-r--r-- | src/basic/mount-util.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/basic/mount-util.c b/src/basic/mount-util.c index b38363076..adf60c7ee 100644 --- a/src/basic/mount-util.c +++ b/src/basic/mount-util.c @@ -552,6 +552,32 @@ bool fstype_is_network(const char *fstype) { return nulstr_contains(table, fstype); } +bool fstype_is_api_vfs(const char *fstype) { + static const char table[] = + "autofs\0" + "bpf\0" + "cgroup\0" + "cgroup2\0" + "configfs\0" + "cpuset\0" + "debugfs\0" + "devpts\0" + "devtmpfs\0" + "efivarfs\0" + "hugetlbfs\0" + "mqueue\0" + "proc\0" + "pstore\0" + "ramfs\0" + "securityfs\0" + "sysfs\0" + "tmpfs\0" + "tracefs\0" + ; + + return nulstr_contains(table, fstype); +} + int repeat_unmount(const char *path, int flags) { bool done = false; |