mount-util: move fstype_is_network() and name_to_handle_at() definitions over

This commit is contained in:
Lennart Poettering
2015-10-27 13:45:53 +01:00
parent 5e524b404b
commit 4e036b7a96
8 changed files with 42 additions and 32 deletions
-23
View File
@@ -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);