Messages in this thread | | | From | Bodo Eggert <> | Subject | Re: [linux-usb-devel] USB/hal: USB open() broken? (USB CD burner underruns, USB HDD hard resets) | Date | Wed, 21 Jun 2006 02:07:56 +0200 |
| |
Alan Cox <alan@lxorguk.ukuu.org.uk> wrote: > Ar Maw, 2006-06-20 am 11:05 +0200, ysgrifennodd Andreas Mohr:
>> But how would HAL safely determine whether a (IDE/USB) drive is busy? >> As my test app demonstrates (without HAL running), the *very first* open() >> happening during an ongoing burning operation will kill it instantly, in the >> USB case. >> Are there any options left for HAL at all? Still seems to strongly point >> towards a kernel issue so far. > > In the IDE space O_EXCL has the needed semantics. At least it does on > Fedora and I don't think thats a Fedora patch, not sure if this is the > case for the USB side of things.
This does not work, since O_EXCL does not work: http://lkml.org/lkml/2006/2/5/137
Instead, I'd (try to) use mandatory locking and prevent open() etc. from causing the bad commands to be sent. -- Ich danke GMX dafür, die Verwendung meiner Adressen mittels per SPF verbreiteten Lügen zu sabotieren.
http://david.woodhou.se/why-not-spf.html - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |