fstab symlink problems [was: VolumeUnmountForced symlink problem]

David Zeuthen david at fubar.dk
Fri Apr 29 14:41:49 PDT 2005


On Fri, 2005-04-29 at 15:15 +1000, Rohan McGovern wrote:
> I did some more testing with HAL 0.5.1, and it seems the problem is larger 
> than I thought.
> 
> Failure to unmount isn't the only problem that occurs when fstab entries use 
> symlinks rather than the real device nodes; HAL doesn't seem to be aware when 
> the device is mounted at all.  e.g. if I insert a CD/DVD into my drive, then 
> mount it via an fstab entry with /dev/cdrom as the block device (which is, in 
> fact, a symlink to /dev/hdc), 'lshal' reports 'volume.is_mounted = false' etc 
> for the device, which is obviously incorrect.
> 
> Can others duplicate this behaviour, or might it depend on which kernel / udev 
> versions are being used?
> 
> A lot of people like to use symlinks for their CD/DVD drives, so I think this 
> definitely deserves fixing :-)

I've fixed a TODO that should fix this

 http://cvs.freedesktop.org/hal/hal/hald/linux2/blockdev.c?r1=1.15&r2=1.16&makepatch=1&diff_format=h

Let me know if it works for you.

Cheers,
David


_______________________________________________
hal mailing list
hal at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/hal



More information about the Hal mailing list