selftests/statmount: update list of valid filesystems
PATCH 1/1 selftests/statmount: update list of valid filesystems
The list of valid filesystems in tools/testing/selftests/filesystems/statmount/statmount_test.c contains several filesystems that have been removed from the kernel, and is missing several recently added filesystems. Update it.
The new list was generated using this small script:
(grep -rA10 'struct file_system_type .* =' | fgrep -w .name fgrep -r MODULE_ALIAS_FS'(' | grep -v '#define'
) | cut -d '"' -f2 | LC_ALL=C sort -u | while read a; do
printf '"%s", ' "$a"
done
echo
It was then manually formatted and edited to remove filesystem types registered by tests and fix a few entries the script couldn't extract correctly.
Signed-off-by Ethan Nelson-Moore <[email protected]>
--- .../filesystems/statmount/statmount_test.c | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-)
tools/testing/selftests/filesystems/statmount/statmount_test.c +12 -12
@@ -17,21 +17,21 @@static const char *const known_fs[] = {"9p" ,"adfs" ,"affs" ,"afs" ,"aio" ,"anon_inodefs" ,"apparmorfs" , -"autofs" ,"bcachefs" ,"bdev" ,"befs" ,"binder" ,"binfmt_misc" , +"autofs" ,"bdev" ,"befs" ,"binder" ,"binfmt_misc" ,"bpf" ,"btrfs" ,"btrfs_test_fs" ,"ceph" ,"cgroup" ,"cgroup2" ,"cifs" , -"coda" ,"configfs" ,"cpuset" ,"cramfs" ,"cxl" ,"dax" ,"debugfs" , -"devpts" ,"devtmpfs" ,"dmabuf" ,"drm" ,"ecryptfs" ,"efivarfs" ,"efs" , -"erofs" ,"exfat" ,"ext2" ,"ext3" ,"ext4" ,"f2fs" ,"functionfs" , -"fuse" ,"fuseblk" ,"fusectl" ,"gadgetfs" ,"gfs2" ,"gfs2meta" ,"hfs" , -"hfsplus" ,"hostfs" ,"hpfs" ,"hugetlbfs" ,"ibmasmfs" ,"iomem" , -"ipathfs" ,"iso9660" ,"jffs2" ,"jfs" ,"minix" ,"mqueue" ,"msdos" , -"nfs" ,"nfs4" ,"nfsd" ,"nilfs2" ,"nsfs" ,"ntfs" ,"ntfs3" ,"ocfs2" , -"ocfs2_dlmfs" ,"omfs" ,"openpromfs" ,"overlay" ,"pipefs" ,"proc" , -"pstore" ,"pvfs2" ,"qnx4" ,"qnx6" ,"ramfs" ,"resctrl" ,"romfs" , +"coda" ,"configfs" ,"cpuset" ,"cramfs" ,"dax" ,"debugfs" , +"devpts" ,"devtmpfs" ,"dmabuf" ,"drm" ,"ecryptfs" ,"efivarfs" , +"erofs" ,"exfat" ,"ext2" ,"ext3" ,"ext4" ,"f2fs" ,"failfs" ,"functionfs" , +"fuse" ,"fuseblk" ,"fusectl" ,"gadgetfs" ,"gfs2" ,"gfs2meta" ,"guest_memfd" ,"hfs" , +"hfsplus" ,"hostfs" ,"hpfs" ,"hugetlbfs" ,"iomem" , +"iso9660" ,"jffs2" ,"jfs" ,"minix" ,"mqueue" ,"msdos" , +"nfs" ,"nfs4" ,"nfsd" ,"nilfs2" ,"nsfs" ,"ntfs" ,"ntfs3" ,"nullfs" ,"ocfs2" , +"ocfs2_dlmfs" ,"omfs" ,"openpromfs" ,"overlay" ,"pidfs" ,"pipefs" ,"proc" , +"pseudo_erofs" ,"pstore" ,"pvfs2" ,"qnx4" ,"qnx6" ,"ramfs" ,"resctrl" ,"romfs" ,"rootfs" ,"rpc_pipefs" ,"s390_hypfs" ,"secretmem" ,"securityfs" ,"selinuxfs" ,"smackfs" ,"smb3" ,"sockfs" ,"spufs" ,"squashfs" ,"sysfs" , -"sysv" ,"tmpfs" ,"tracefs" ,"ubifs" ,"udf" ,"ufs" ,"v7" ,"vboxsf" , -"vfat" ,"virtiofs" ,"vxfs" ,"xenfs" ,"xfs" ,"zonefs" ,NULL }; +"tmpfs" ,"tracefs" ,"ubifs" ,"udf" ,"ufs" ,"vboxsf" , +"vfat" ,"vfio" ,"virtiofs" ,"xenfs" ,"xfs" ,"zonefs" ,NULL };static void write_file (const char *path,const char *val) {
Signature · 1 line
2.43.0