Bug 488399

Summary: Nautilus confuses fuse encfs/sshfs mounts, causing duplicate icons on desktop
Product: [Fedora] Fedora Reporter: Mace Moneta <moneta.mace>
Component: gvfsAssignee: Tomáš Bžatek <tbzatek>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: alexl, davidz, mclasen, selinux, tbzatek, tsmetana
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-03-04 21:36:09 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
devkit-disks ouput
none
/etc/mtab
none
/proc/mounts
none
gvfs-mount none

Description Mace Moneta 2009-03-04 04:33:15 UTC
Description of problem:

After todays updates, my desktop showed two "Backup" icons.  The actual volume "Backup" is /dev/sdb1 that I use to backup /dev/sda1.  It is normally not mounted.  The two "Backup" volume icons on the destop are actually fuse sshfs and encfs mounts that are now being displayed with the "Backup" volume name instead of their mountpoint directories (which had previously been the case).  I confirmed that this occurs even on a newly added userid, so no corruption is involved.

Version-Release number of selected component (if applicable):

gvfs-1.1.7-2.fc11.x86_64

How reproducible:

Always

Steps to Reproduce:
1.Have an unmounted drive
2.Mount some sshfs an encfs drives
3.Watch the fun
  
Actual results:

Duplicate icons, with incorrect labels

Expected results:

Normally, the icons appear with their mountpoint directory names.

Additional info:

You can see the duplicates in the following display.  The mountpoints:

/home/mmoneta/bmoneta-mmouse
/home/mmoneta/.app-configfiles

are the ones that are appearing with "Backup" volume icons.

$ gvfs-mount -l
Drive(0): HL-DT-ST DVD-RAM GH22LS30
  Type: GProxyDrive (GProxyVolumeMonitorGdu)
Drive(1): BELKIN USB 2 HS-CF
  Type: GProxyDrive (GProxyVolumeMonitorGdu)
Drive(2): BELKIN USB 2 HS-SM
  Type: GProxyDrive (GProxyVolumeMonitorGdu)
Drive(3): BELKIN USB 2 HS-SD/MMC
  Type: GProxyDrive (GProxyVolumeMonitorGdu)
Drive(4): 500 GB ATA WDC WD5000AAJS-2
  Type: GProxyDrive (GProxyVolumeMonitorGdu)
  Volume(0): Backup
    Type: GProxyVolume (GProxyVolumeMonitorGdu)
    Mount(0): Backup -> file:///home/mmoneta/bmoneta-mmouse
      Type: GProxyMount (GProxyVolumeMonitorGdu)
Drive(5): BELKIN USB 2 HS-MS
  Type: GProxyDrive (GProxyVolumeMonitorGdu)
Drive(6): HL-DT-ST DVD-RAM GH22LS30
  Type: GProxyDrive (GProxyVolumeMonitorGdu)
Mount(1): Backup -> file:///home/mmoneta/.app-configfiles
  Type: GProxyMount (GProxyVolumeMonitorGdu)
Mount(2): mmouse-shm -> file:///home/mmoneta/mmouse-shm
  Type: GProxyMount (GProxyVolumeMonitorGdu)

Comment 1 Mace Moneta 2009-03-04 19:25:23 UTC
Today I inserted a blank DVD to burn off some files.  The "Blank CD/DVD" icon and label were correctly shown.

I burned the DVD with Gnome's cd/dvd creator, after which the disc was ejected.  I then reinserted the DVD to check the contents, and it came up with the "Backup" label and hard drive icon.

As a result, there was no eject option in the right click menu.  I had to eject the disc from the command line.

Comment 2 David Zeuthen 2009-03-04 20:14:52 UTC
(In reply to comment #0)
> Description of problem:
> 
> After todays updates, my desktop showed two "Backup" icons.  The actual volume
> "Backup" is /dev/sdb1 that I use to backup /dev/sda1.  It is normally not
> mounted.  The two "Backup" volume icons on the destop are actually fuse sshfs
> and encfs mounts that are now being displayed with the "Backup" volume name
> instead of their mountpoint directories (which had previously been the case). 
> I confirmed that this occurs even on a newly added userid, so no corruption is
> involved.

Please attach the output of 

 1. devkit-disks --dump

 2. cat /proc/mounts

 3. cat /etc/mtab

 3. gvfs-mount -li

when experiencing this problem (and generally when reporting bugs regarding icon/name problems in GNOME.)

Thanks.

For 1. you will need DeviceKit-disks-003-3.fc11, get it here

 http://koji.fedoraproject.org/koji/buildinfo?buildID=92675

or wait until tomorrow's rawhide.

Comment 3 Mace Moneta 2009-03-04 20:28:36 UTC
Created attachment 334050 [details]
devkit-disks ouput

Comment 4 Mace Moneta 2009-03-04 20:29:03 UTC
Created attachment 334051 [details]
/etc/mtab

Comment 5 Mace Moneta 2009-03-04 20:30:06 UTC
Created attachment 334052 [details]
/proc/mounts

Comment 6 Mace Moneta 2009-03-04 20:30:37 UTC
Created attachment 334053 [details]
gvfs-mount

Comment 7 David Zeuthen 2009-03-04 20:42:34 UTC
OK, thanks for the output. So this is basically a bug in the GVfs gdu volume monitor. Mace, any chance you can give me some hints about how I can reproduce this such as a step-by-step guide on how to set this up? (I have very little experience with encfs)

Comment 8 David Zeuthen 2009-03-04 21:36:09 UTC
OK, I managed to reproduce this with just using sshfs. The fix is in gvfs-1.1.7-3.fc11

http://koji.fedoraproject.org/koji/taskinfo?taskID=1221761

Please reopen if this doesn't fix the problem. Thanks.

Comment 9 David Zeuthen 2009-03-04 21:39:13 UTC
*** Bug 488573 has been marked as a duplicate of this bug. ***

Comment 10 Tom London 2009-03-04 21:54:39 UTC
gvfs-1.1.7-3.fc11.x86_64 (and friends) makes this "work for me".

I installed, logged off/on, and rebooted/logged in.  Both times the "right" FS's were mounted and the proper icons/labels were on the desktop.

Thanks.

Comment 11 Mace Moneta 2009-03-05 03:59:44 UTC
Confirming that it works for me as well.