g_file_is_native - wrong return value for fuse.sshfs
Hi,
g_file_is_native documents
On some systems non-native files may be available using the native filesystem via a userspace filesystem (FUSE), in these cases this call will return FALSE
I cannot verify this. /proc/self/mountinfo shows fuse.sshfs, however g_file_is_native returns TRUE for a file below that sshfs mount. This has important performance implications, for example gtk_file_chooser dialog attempts to determine the mimetype for remote files (by potentially reading quite some bytes for large folders).
Tested with glib 2.66.8 on Debian 11
Thanks
Tycho