Bugzilla – Bug 113005
nautilus 'My Computer': confused ...
Last modified: 2005-09-08 15:48:09 UTC
My machine (hwinfo attached) has 1 DVD reader, and 1 CD read/writer (AFAICS) - either way the 'My computer' view manages to turn that into 4 apparent devices - which is slightly unusual. Harmless but strange I guess.
Created attachment 47569 [details] photo
Created attachment 47570 [details] hwinfo
I suspect this is hal providing 2 and fstab providing 2.
The Cheetah is on the case.
Created attachment 47665 [details] Proposed fix! Seriously, I am the Golden Cheetah.
Problem was as jpr described: gnome-vfs was pulling from both HAL and fstab. But a little more subtle: gnome-vfs usually checks both and won't duplicate, but we use symlinks like "/dev/cdrom" and HAL would report not knowing those, as HAL deals in the actual device node only. Fix is to use readlink(2) to resolve the link, clean it up, and ask HAL about that, too.
So - another thing - does HAL report capabilities that we then subsequently use ? ie. if we have 2 reports of the same device: "can play DVDs" vs. "can record CDs" - do we choose 1 at random, or correctly aggregate this set - or - are we lame enough to not really care in this code ? :-) Anyhow - thanks for the fix ;-)
Patch submitted upstream. Track via b.g.o #314490. We need to patch our gnome-vfs2 package, though, if they do not take this before 2.12.
#7: Yes, it reports sets of capabilities in an API-usable fashion.
b.g.o bug ##314490 says that this bug was merged upstream, before 2.12 was released. So we can pull this fix in in the final gnome-vfs package. Otherwise we need to merge this patch ...
Gary can pick this up in 2.12 then.
*** Bug 114324 has been marked as a duplicate of this bug. ***
We have the 2.12.0 version of gnome-vfs now, marking fixed.