Re: PATCH/FIX for drivers/cdrom/cdrom.c

Arjan van de Ven
2006-08-16T18:44:45Z

On Wed, 2006-08-16 at 14:37 -0400, Lennart Sorensen wrote:
> On Wed, Aug 16, 2006 at 07:26:02PM +0200, Dirk wrote:
> > I have changed a message that didn't clearly tell the user what was goin
> > on...
> >
> > Please have a look!
>
> Perhaps the real problem is that some @#$@#$ user space task is
> constantly trying to mount the disc while something else is trying to
> write to it.
>
> gnome and kde both seem very eager to implement such things. perhaps
> there should be a way to prevent any access by such processes while
> writing to the disc.

there is. O_EXCL works for this.
Any sane desktop app and cd burning app use O_EXCL already for this
purpose...