From: Gabriel de Perthuis Date: Wed, 20 May 2020 17:55:17 +0000 (+0200) Subject: Add to the list of pseudo-filesystem types X-Git-Tag: v2.36-rc1~83 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3dde0d076d903af75b85c0ee465c56fdda6401d9;p=thirdparty%2Futil-linux.git Add to the list of pseudo-filesystem types Useful commands for maintaining the list: grep -w ^nodev /proc/filesystems |sort In a Linux source checkout: git grep -wl file_system_type '*.c' |xargs grep -L FS_REQUIRES_DEV |xargs grep -wA12 file_system_type |grep -F '.name' |uniq |column -t --- diff --git a/libmount/src/utils.c b/libmount/src/utils.c index 606830797b..6be7a72c0a 100644 --- a/libmount/src/utils.c +++ b/libmount/src/utils.c @@ -281,8 +281,10 @@ int mnt_fstype_is_pseudofs(const char *type) /* This array must remain sorted when adding new fstypes */ static const char *pseudofs[] = { "anon_inodefs", + "apparmorfs", "autofs", "bdev", + "binder", "binfmt_misc", "bpf", "cgroup", @@ -294,6 +296,8 @@ int mnt_fstype_is_pseudofs(const char *type) "devpts", "devtmpfs", "dlmfs", + "dmabuf", + "drm", "efivarfs", "fuse", /* Fallback name of fuse used by many poorly written drivers. */ "fuse.archivemount", /* Not a true pseudofs (has source), but source is not reported. */ @@ -308,6 +312,7 @@ int mnt_fstype_is_pseudofs(const char *type) "fuse.xwmfs", "fusectl", "hugetlbfs", + "ipathfs", "mqueue", "nfsd", "none", @@ -317,14 +322,17 @@ int mnt_fstype_is_pseudofs(const char *type) "proc", "pstore", "ramfs", + "resctrl", "rootfs", "rpc_pipefs", "securityfs", "selinuxfs", + "smackfs", "sockfs", "spufs", "sysfs", - "tmpfs" + "tmpfs", + "tracefs" }; assert(type);