diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-10-20 12:22:32 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-10-20 12:22:32 +0200 |
commit | c91960c5a04a3515c43f50a358588f056b8575a6 (patch) | |
tree | 1f6406d2604cc67f455ca5790b19acc65eb345c7 /src/basic/util.h | |
parent | 824b35c3859bc99b97ac5fa6e09aa34627e9bcd5 (diff) | |
parent | d167824896e583ffaca891b1c355ff852496ff66 (diff) |
Merge pull request #1619 from iaguis/nspawn-sysfs-netns-3
nspawn: skip /sys-as-tmpfs if we don't use private-network
Diffstat (limited to 'src/basic/util.h')
-rw-r--r-- | src/basic/util.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/basic/util.h b/src/basic/util.h index 4b1c5878c5..ff39eae715 100644 --- a/src/basic/util.h +++ b/src/basic/util.h @@ -365,6 +365,12 @@ char* getusername_malloc(void); int chmod_and_chown(const char *path, mode_t mode, uid_t uid, gid_t gid); int fchmod_and_fchown(int fd, mode_t mode, uid_t uid, gid_t gid); +typedef long statfs_f_type_t; + +bool is_fs_type(const struct statfs *s, statfs_f_type_t magic_value) _pure_; +int fd_check_fstype(int fd, statfs_f_type_t magic_value); +int path_check_fstype(const char *path, statfs_f_type_t magic_value); + bool is_temporary_fs(const struct statfs *s) _pure_; int fd_is_temporary_fs(int fd); |