GNOME Bugzilla – Bug 314490
Drives are represented twice in gnome-vfs.
Last modified: 2005-08-29 17:33:41 UTC
Drives are represented twice in gnome-vfs (e.g., listed twice in Nautilus) if they appear in both fstab and in HAL, and the device node listed in HAL is not the same as the device node listed in HAL. This can readily happen if fstab contains a symlink, as is common with "/dev/cdrom" and such. Fix is simple: Check both the listed device node and its resolved link target against HAL, before adding as a new device.
Yup, sounds reasonable.
Created attachment 51340 [details] [review] Proposed patch! Proposed fix. Simply checks the target of the symlink, if any, for a match, too.
Committed on cvs head. Right before hard code freeze :P Thanks.
In the patch, where you call readlink() you can't use PATH_MAX-1 bytes, since "target" already points to the end of the "/dev/" string.
Ah, thanks Federico. Patch attached.
Created attachment 51517 [details] [review] Small fix.