diff options
author | Stanislav Brabec | 2019-02-28 23:09:40 +0100 |
---|---|---|
committer | Karel Zak | 2019-03-04 11:38:28 +0100 |
commit | 89342e0406209f195bf7a1a5396ac74c16470ac6 (patch) | |
tree | 45fbd42adea5d2ab0ef9510a5c84e80be0334f7b /libmount/src | |
parent | agetty: Switch to 8-bit processing in get_logname() for UTF-8 terminals (diff) | |
download | kernel-qcow2-util-linux-89342e0406209f195bf7a1a5396ac74c16470ac6.tar.gz kernel-qcow2-util-linux-89342e0406209f195bf7a1a5396ac74c16470ac6.tar.xz kernel-qcow2-util-linux-89342e0406209f195bf7a1a5396ac74c16470ac6.zip |
libmount: Recognize more fuse filesystems as pseudofs and netfs
Add some fuse filesystems to the list of pseudofs and netfs.
There are still tens of filesystems that should be evaluated and added.
Signed-off-by: Stanislav Brabec <sbrabec@suse.cz>
Diffstat (limited to 'libmount/src')
-rw-r--r-- | libmount/src/utils.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/libmount/src/utils.c b/libmount/src/utils.c index 6d8871717..7f6cc1405 100644 --- a/libmount/src/utils.c +++ b/libmount/src/utils.c @@ -283,7 +283,14 @@ int mnt_fstype_is_pseudofs(const char *type) "devtmpfs", "dlmfs", "efivarfs", - "fuse.gvfs-fuse-daemon", + "fuse", /* Fallback name of fuse used by many poorly written drivers. */ + "fuse.archivemount", /* Not a true pseudofs (has source), but source is not reported. */ + "fuse.dumpfs", /* In fact, it is a netfs, but source is not reported. */ + "fuse.encfs", /* Not a true pseudofs (has source), but source is not reported. */ + "fuse.gvfs-fuse-daemon", /* Old name, not used by gvfs any more. */ + "fuse.gvfsd-fuse", + "fuse.rofiles-fuse", + "fuse.xwmfs", "fusectl", "hugetlbfs", "mqueue", @@ -323,6 +330,8 @@ int mnt_fstype_is_netfs(const char *type) strncmp(type,"nfs", 3) == 0 || strcmp(type, "afs") == 0 || strcmp(type, "ncpfs") == 0 || + strcmp(type, "fuse.curlftpfs") == 0 || + strcmp(type, "fuse.sshfs") == 0 || strncmp(type,"9p", 2) == 0) return 1; return 0; |