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 641569 - Volumes shown for mounts to dot directories
Volumes shown for mounts to dot directories
Status: RESOLVED OBSOLETE
Product: gvfs
Classification: Core
Component: [obsolete] gdu volume monitor
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gvfs-maint
gvfs-maint
Depends on:
Blocks:
 
 
Reported: 2011-02-04 23:35 UTC by jhansonxi
Modified: 2011-03-30 03:06 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Screenshot of Nautilus (88.75 KB, image/png)
2011-02-04 23:35 UTC, jhansonxi
Details

Description jhansonxi 2011-02-04 23:35:02 UTC
Created attachment 180136 [details]
Screenshot of Nautilus

Ubuntu 10.04 (Lucid Lynx) i386
Nautilus 2.30.1

mount -t cifs //localhost/test /home/administrator/.should_be_hidden -o uid=1000,gid=1000,ro

Nautilus shows this mount in Places sidebar and desktop.  It is also shown in file chooser dialogs such as Gedit.  It is hidden in the view the same as other dot directories/dot files.

Adding it to ~/.hidden and ~/.nautilus/globalhidden has no effect.

In my usage scenario, the CIFS mount is being used to override UID/GID of a r/o branch for an aufs mount.  The aufs filesystem doesn't have that capability.  Since the aufs mount point is the one intended for the user (along with a hidden rw branch), the CIFS mount is useless and distracting.
Comment 1 jhansonxi 2011-02-04 23:36:58 UTC
Bug #316429 and bug #620313 are somewhat related to this bug.
Comment 2 Cosimo Cecchi 2011-02-05 15:11:48 UTC
-> gvfs

This, if anything, would be a bug in the gvfs volume monitor, not nautilus. However, I don't think this is a bug, as if you don't want it to be visible, just mount it outside /home.
Comment 3 jhansonxi 2011-02-05 20:39:13 UTC
My aufs mount point is for applications running in Wine.  Normally they are in hidden directories within /home because they have user-specific data.  Since they are dot directories that don't show up with ls, they shouldn't be shown in Nautilus either.
Comment 4 Tomas Bzatek 2011-03-21 14:55:28 UTC
We added a test condition to hide dot mounts no matter where they're mounted only in gvfs-1.7.0 and glib-2.27.4: http://git.gnome.org/browse/gvfs/commit/?id=87d354e8510072a1dcaa5698e4a0fbff34560ee5

Please upgrade to lastest version and reopen this bugreport if the issue persist. Also remember to use gdu volume monitor, hal is deprecated.
Comment 5 jhansonxi 2011-03-30 03:06:43 UTC
I wasn't able to get it to compile on my Ubuntu 11.04 alpha 3 (Natty Narwhal) i386 system.  I'm short on time so I can't try further.  Hopefully it makes it into the next Ubuntu release.  Thanks for the fix.