Merge branch 'cifs-is-not-a-system-fs' into 'master'

gunixmounts: Stop considering cifs/nfs as system file systems

See merge request GNOME/glib!125
This commit is contained in:
Ondrej Holy 2018-06-29 07:07:24 +00:00
commit 51132b1d49
2 changed files with 6 additions and 4 deletions

View File

@ -307,7 +307,6 @@ g_unix_is_system_fs_type (const char *fs_type)
"autofs",
"autofs4",
"cgroup",
"cifs",
"configfs",
"cxfs",
"debugfs",
@ -329,8 +328,6 @@ g_unix_is_system_fs_type (const char *fs_type)
"mfs",
"mqueue",
"ncpfs",
"nfs",
"nfs4",
"nfsd",
"nullfs",
"ocfs2",
@ -343,7 +340,6 @@ g_unix_is_system_fs_type (const char *fs_type)
"rpc_pipefs",
"securityfs",
"selinuxfs",
"smbfs",
"sysfs",
"tmpfs",
"usbfs",

View File

@ -33,6 +33,12 @@ test_is_system_fs_type (void)
{
g_assert_true (g_unix_is_system_fs_type ("tmpfs"));
g_assert_false (g_unix_is_system_fs_type ("ext4"));
/* Check that some common network file systems arent considered system. */
g_assert_false (g_unix_is_system_fs_type ("cifs"));
g_assert_false (g_unix_is_system_fs_type ("nfs"));
g_assert_false (g_unix_is_system_fs_type ("nfs4"));
g_assert_false (g_unix_is_system_fs_type ("smbfs"));
}
static void