diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-10-27 13:45:00 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-10-27 13:45:53 +0100 |
commit | 4e036b7a96b7a72461bdb68ded304041e892b8eb (patch) | |
tree | 8b1b79bb8e1ca4e715f1fd6ec3e643567e690996 /src/basic/util.c | |
parent | 5e524b404b7b319aa6a24bf21132b1074b206996 (diff) |
mount-util: move fstype_is_network() and name_to_handle_at() definitions over
Diffstat (limited to 'src/basic/util.c')
-rw-r--r-- | src/basic/util.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/basic/util.c b/src/basic/util.c index 62d58c13fd..da7de27a04 100644 --- a/src/basic/util.c +++ b/src/basic/util.c @@ -125,29 +125,6 @@ size_t page_size(void) { return pgsz; } -bool fstype_is_network(const char *fstype) { - static const char table[] = - "afs\0" - "cifs\0" - "smbfs\0" - "sshfs\0" - "ncpfs\0" - "ncp\0" - "nfs\0" - "nfs4\0" - "gfs\0" - "gfs2\0" - "glusterfs\0"; - - const char *x; - - x = startswith(fstype, "fuse."); - if (x) - fstype = x; - - return nulstr_contains(table, fstype); -} - void rename_process(const char name[8]) { assert(name); |