diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2018-07-19 12:42:17 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2018-07-19 12:42:17 -0400 |
commit | 021fdbe02956e745b579f49fc0585747c2aec458 (patch) | |
tree | d74b6c6eaa8130e55e9b52f310acb23fcc033d73 /src/basic/stat-util.h | |
parent | d54b7826fa34ee1af5d28023f1847f3ae55ff10c (diff) | |
parent | 8e0c6d2655f83927ffdce8ed2edf6d7b80423178 (diff) |
Merge tag 'systemd/v238.0-3.parabola1' into systemd/parabola
Diffstat (limited to 'src/basic/stat-util.h')
-rw-r--r-- | src/basic/stat-util.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/basic/stat-util.h b/src/basic/stat-util.h index d8d3c20496..4b941f6104 100644 --- a/src/basic/stat-util.h +++ b/src/basic/stat-util.h @@ -61,8 +61,13 @@ int fd_is_fs_type(int fd, statfs_f_type_t magic_value); int path_is_fs_type(const char *path, statfs_f_type_t magic_value); bool is_temporary_fs(const struct statfs *s) _pure_; +bool is_network_fs(const struct statfs *s) _pure_; + int fd_is_temporary_fs(int fd); +int fd_is_network_fs(int fd); + int fd_is_network_ns(int fd); + int path_is_temporary_fs(const char *path); /* Because statfs.t_type can be int on some architectures, we have to cast @@ -70,3 +75,6 @@ int path_is_temporary_fs(const char *path); * signed/unsigned comparison, because the magic can be 32 bit unsigned. */ #define F_TYPE_EQUAL(a, b) (a == (typeof(a)) b) + +int stat_verify_regular(const struct stat *st); +int fd_verify_regular(int fd); |