GNOME Bugzilla – Bug 319689
eject/mounting a video DVD several times creates new DVD drives on a pure HAL/PMOUNT system.
Last modified: 2006-07-14 18:47:43 UTC
Version details: gnome-vfs 2.12.1.1 Distribution/Version: Gentoo 2005.1 dbus 0.36.2, HAL 0.5.4, pmount 0.9.3, no entry in fstab for my DVD drive. 1 - Open the computer window. 2 - Click on eject in the DVD drive icon contextual menu. 3 - Insert a video DVD in the tray. 4 - Click on mount in the DVD drive icon contextual menu. 5 - eject from the mounted video DVD icon. 6 - mount from the DVD drive icon... ... until a mounted video DVD icon appears, in addition to the DVD drive icon! Then eject from the mounted video DVD icon and start over. You can create as many DVD drives you want this way (it screws everything up, making totem crash for instance).
Created attachment 53947 [details] [review] Fix problems of ghost cdrom/dvdrom drives showing up temp udl's were being passed to the volume_mount code. This would cause the drive without volumes object to be destroyed and a new one created as a drive with volume's. Once the volume was actually mounted volume_mount would be called again with the new volume udi, which would cause the drive to be created again before attaching the volume. Hal's temp udi is for internal usage so this code bails out of the mount if it string matches that for the volume.
After using this patch, I was not able to reproduce the bug.
Created attachment 54101 [details] [review] Slight placement modification of the previous patch I was a bit over zealous in my previous exit. Some other drives and volumes weren't getting removed from monitoring properly because of it.
I have no issue to report with this new patch.
I don't really know how the HAL stuff works, but this looks ok and people tested it, so I'm commiting this. However, the two patches you attached are identical, so maybe you forgot to attach the right patch the second time?
Created attachment 54312 [details] [review] Don't treat temp udi's as real volumes I attached the wrong version of the patch last time. This is the final placement fix that doesn't bail out before volumes are removed on ejection. Sorry.
Commited. Thanks.
*** Bug 158672 has been marked as a duplicate of this bug. ***