[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#391502: closed by Christopher Martin <chrsmrtn@debian.org> (Re: Bug#391502: Incorrect dependency on pmount)



On Wednesday 11 October 2006 11:01, Michael Biebl wrote:
> Oh dear, what a mess. Seems you were right, Christopher.
>
> Being part of the Debian Utopia team (which amongst others maintains
> hal), I knew, that the mount code (actually bash scripts) in 0.5.7
> had some problems and we used to patch them to make use of pmount.
> Beginning with hal-0.5.8 we dropped these pmount patches from hal, as
> the mount code in hal was more robust and better dealt with
> non-removable/removable devices, or devices configured in /etc/fstab.
>
> Before I filed this bug report, I grepped the sources of kdebase and
> couldn't find a reference to pmount/pumount. I also did some tests
> with my cdrom drive. I removed the pmount binaries, and
> mounting/unmounting of the drive was still possible as an
> un-priviledged user (no matter if the device was configured in
> /etc/fstab or not). Only ejecting without having it unmounted first
> did not work without pmount.
> I therefore thought kded media manager properly uses hal to
> mount/unmount devices and it would be safe to remove the dependency
> on pmount.
> Today a friend of mine brought me an USB stick. I plugged it in, the
> icon appeared on the desktop and I was able to mount the device
> without problems. Unfortunately the option "Safely Remove" from the
> context menu did not have any effect. Only after installing pmount, I
> was able to unmount the USB stick. So, indeed, KDE seems to need
> pmount for successfully mounting/unmounting devices, and I was wrong
> requesting the removal of the dependency.
> The real problem though seems to be, that KDE doesn't use hal
> properly, to do the mounting/unmounting/ejecting.
> Unfortunately the code in kioslave/media/mediamanager/ is quite
> complex and large, so I couldn't easily spot the problem. Someone
> with more knowledge of this code should take a look at this and fix
> the hal support there.
>
> To make a long story short, I think the hal related mount code in KDE
> is somewhat broken atm and should be fixed in the long term. As a
> short term solution it's probably better to add the pmount dependency
> back.

Will do.

Thanks for the information. And yes, the KDE code is almost certainly to 
blame here. Hopefully KDE4 will clean things up.

Cheers,
Christopher Martin

Attachment: pgph8NUYmLJ9C.pgp
Description: PGP signature


Reply to: