After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 788880 - gunixmounts: Update list of virtual file systems to ignore
gunixmounts: Update list of virtual file systems to ignore
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: gio
unspecified
Other All
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2017-10-12 13:56 UTC by Philip Withnall
Modified: 2017-10-13 10:05 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gunixmounts: Update list of virtual file systems to ignore (1.64 KB, patch)
2017-10-12 13:56 UTC, Philip Withnall
committed Details | Review

Description Philip Withnall 2017-10-12 13:56:35 UTC
Trivial patch attached. See also: bug #788878 and bug #788879.
Comment 1 Philip Withnall 2017-10-12 13:56:39 UTC
Created attachment 361423 [details] [review]
gunixmounts: Update list of virtual file systems to ignore

Synchronise it with the list in gnome-settings-daemon, which has seen
more recent updates than this one.

https://git.gnome.org/browse/gnome-settings-daemon/tree/plugins/housekeeping/gsd-disk-space-helper.c

Signed-off-by: Philip Withnall <withnall@endlessm.com>
Comment 2 Bastien Nocera 2017-10-12 13:58:51 UTC
Could we not have this data in a shared header in GIO instead?
Comment 3 Bastien Nocera 2017-10-12 13:59:04 UTC
(make that gio-unix)
Comment 4 Philip Withnall 2017-10-12 15:18:04 UTC
Hmm. I’d rather not expose the actual list of strings in a header, because that ties the check to being non-programmatic. Ideally we’d have an API like g_unix_mount_is_system_internal(), but which doesn’t factor in the result of g_unix_is_mount_path_system_internal() since that’s irrelevant in g-s-d’s case.

g_unix_mount_has_system_fs_type()?
and g_unix_mount_has_system_device_path()?

I’d like to handle that as a follow-up bug in any case, though, since I’d like to get this particular fix in now so we can carry it downstream without problems.
Comment 5 Ondrej Holy 2017-10-13 07:42:00 UTC
Review of attachment 361423 [details] [review]:

The list makes sense to me... those filesystems (at least those which I know) are usually used in system paths anyway or are problematic for various reasons (and those which I don't know are definitely system internal :-). And we have x-gvfs-show for sure...

And it is definitely a good idea to share this somehow. GVfs currently uses just g_unix_is_mount_path_system_internal, but it would probably be a good idea to check also other indications...
Comment 6 Philip Withnall 2017-10-13 10:05:43 UTC
Thanks for the review, Ondrej. I’ll push this and have filed bug #788927 about reducing the duplication between GLib, g-s-d and g-c-c.

Attachment 361423 [details] pushed as 0d69462 - gunixmounts: Update list of virtual file systems to ignore