Re: [linux-usb-devel] USB/hal: USB open() broken? (USB CD burnerunderruns, USB HDD hard resets)

From: Bodo Eggert
Date: Wed Jun 21 2006 - 12:15:05 EST


On Wed, 21 Jun 2006, Alan Cox wrote:
> Ar Mer, 2006-06-21 am 02:07 +0200, ysgrifennodd Bodo Eggert:

> > This does not work, since O_EXCL does not work:
> > http://lkml.org/lkml/2006/2/5/137
>
> It works fine. Its an advisory exclusive locking scheme which is
> precisely what is needed and precisely how some vendors implement their
> solution.

This will be as effective as "/var/lock/please-don't-touch-the-burner",
and the lock is more portable ...

> There are good reasons for not having absolute locks, one of which is
> that you might want to force a reset or a hot unplug of an interface
> knowing you'll lose the CD its burning (eg because your flight is about
> to leave)

Killing cdrecord should take care of that lock.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/