Comment 11 for bug 452049

Revision history for this message
Dominique Brazziel (dbrazziel) wrote :

Hello all. Thank you for working on this bug, I have been working on it for the past few days and this thread clears things up quite a bit. Since reading this, I took a look at some gio code and was thinking one of the functions in 'giounixmounts.c' might be of some assistance in determining if the volume is already mounted? For instance, in my case I have an fstab entry for '/dev/sdX'
mounted at mount point '/av', then later a bind mount for 'device' /av at mount point '/export/av' (for NFS sharing with other machines on the LAN).

A list of all mounted volumes can be gotten via 'g_unix_mounts_get () ' in 'giounixmounts.c', which has logic to deal with bind mounts. Perhaps check somewhere to insure that the places menu is not populated with this entry that is about to be mounted if GUnixMountPoint (/av) is equal to a previously mounted GUnixMountEntry (/av).