USB Media card - works at boot-up, removal works,
Luke Kenneth Casson Leighton
lkcl at lkcl.net
Tue Sep 21 13:29:11 PDT 2004
okay i tracked down a bit further, i think i outlined a bit towards the
end of the original message:
* umount -l /media/usbdisk7 is being done but konqueror still has
directory handles open on it.
* therefore ioctl("/dev/sdc", BLKRRPART) returns an error "Device Busy".
* therefore no notifications go to the child volumes.
i "solved" the problem by doing this drastic and vicious assault on
system("lsof %s | cut -d' ' -f2 | sort | uniq | xargs kill -TERM",
when that is done from HAL just before the unmount -l, the problem goes
... of course, i wouldn't dream of suggesting to anyone that this
technique actually be used in a production environment, but it _does_
but seriously, the problems are caused, i believe, by KDE's kio_kfile
plugin, which does "directory notify" requests.
i'm endeavouring to track down whether disabling "dir notify" solves the
problem of konqueror keeping directory handles open.
On Tue, Sep 21, 2004 at 08:52:23PM +0200, David Zeuthen wrote:
> On Tue, 2004-09-21 at 19:02 +0100, Luke Kenneth Casson Leighton wrote:
> > it's one of those USB media readers with four partitions, one per
> > each of the 5-in-1 usb card slots (err.. four... five... errr..)
> > okay it's a 5-in-1 usb card reader, but there are only four
> > partitions. um.
> I think you mean to say four LUN's rather than four partitions.
if you have the skill or knowledge to spot that i'll happily take
your word for it :)
Truth, honesty and respect are rare commodities that all spring from
the same well: Love. If you love yourself and everyone and everything
around you, funnily and coincidentally enough, life gets a lot better.
<a href="http://lkcl.net"> lkcl.net </a> <br />
<a href="mailto:lkcl at lkcl.net"> lkcl at lkcl.net </a> <br />
hal mailing list
hal at freedesktop.org
More information about the Hal