volume unmounting/ejecting broken on linux
Danny Kukawka
danny.kukawka at web.de
Wed May 17 05:35:45 PDT 2006
On Wednesday 17 May 2006 14:05, Danny Kukawka wrote:
> On Wednesday 17 May 2006 13:45, Danny Kukawka wrote:
> > I think because of the attached patch (untested atm). IMO the path to the
> > OS specific scripts id wrong.
>
> Forget the patch ... I oversaw the Makefile of the OS dir. ;-)
IMO the problem of the mount helper is, it does not cleanup all mountpoints
(or at least the currently requested) before create new dirs in /media (I
can't see something like this in tools/hal-storage-mount.c atm).
There are two possible ways for explicitly requested mountpoints if they
already exists:
1.)
- check if mountpoint already exist:
[YES]: check if there is already a mount for this dir
[YES]: exit
[NO]: check if the mountpoint was created by HAL
[YES]: reuse
[NO]: exit
[NO]: create mountpoint ...
2.)
- call cleanup mountpoints script before check mountpoints
Btw: this all is maybe a littlebit racy if more than one mount script is
running at the same time. Maybe you should not explicitly requested
mountpoints or HAL should also add '_$nÄ to the mountpoint in this case.
Cheers,
Danny
More information about the hal
mailing list