GNOME Bugzilla – Bug 520851
the fstab partitions not mounted in media should not be listed but they are
Last modified: 2009-01-10 04:16:26 UTC
The current version lists all the mounts where only the user directory and media ones should be listed
Fixed. Tested with these devices being referenced in /etc/fstab /dev/sdb1 /dev/disk/by-uuid/47C2-1994 LABEL=davidz UUID=47C2-1994 UUID=47c2-1994 2008-03-06 David Zeuthen <davidz@redhat.com> * hal/ghalvolumemonitor.c: (_g_unix_mount_point_guess_should_display), (should_be_hidden_according_to_etc_fstab), (should_volume_be_ignored), (should_drive_be_ignored), (update_drives), (update_volumes): Avoid showing volumes from /etc/fstab if the mount point is one that should not be displayed to the user (#520851)
Just to clarify the devices mentioned in comment 1 all refer to the same device; I mentioned them to show we catch all possible cases: - regular special device - symlink to special device file - mount by label (e.g. LABEL=), - mount by uuid (e.g. UUID=) (which case insensitive)).
reopening, that doesn't work, should_volume_be_ignored() uses g_unix_is_mount_path_system_internal() on mounted partitions and not the new fstab logic and that doesn't consider if the mount is in media or not
Created attachment 106785 [details] [review] Fix for latest issue
(In reply to comment #4) > Fix for latest issue the "device_file_matches" gboolean is only set to FALSE and not used at all after that.
commited with "device_file_matches" removed.
*** Bug 505214 has been marked as a duplicate of this bug. ***