GNOME Bugzilla – Bug 558298
Hide ecryptfs mounts
Last modified: 2008-12-13 23:52:39 UTC
Hi! I use ecryptfs for partially encrypting some bits of my home directory: /home/martin/.Private on /home/martin/Private type ecryptfs (rw,ecryptfs_sig=a8fc214afe634ab5,ecryptfs_cipher=aes,ecryptfs_key_bytes=16,user=martin) (This is a standard setup in Ubuntu 8.10 now). This means that in nautilus/on the desktop/in the Places menu I see a "Private" mount icon. This cannot be used for unmounting (only root, respectively the PAM module can do that), is redundant (because there is already the "Private" directory, i. e. the mount point), and thus confusing. My current idea is to hide ecryptfs mounts from the user. What do you think about this?
This manifests as follows: $ gvfs-mount -l [...] Mount(0): Private -> file:///home/martin/Private
Whoops, this should actually be glib, ignore_fs in gunixmounts.c
Created attachment 121544 [details] [review] hide ecryptfs Unix mounts I tested this patch, and it works very well for me. I did not upload it to Ubuntu yet, just to my private package archive for testing. (See https://launchpad.net/bugs/259799 for feedback and status). What do you think?
* gunixmounts.c: (guess_system_internal): Hide ecryptfs mounts, so that the desktop does not show both the mount and the target directory. Patch by Martin Pitt