Re: K3b and 2.6.9?

From: ismail dönmez
Date: Tue Aug 31 2004 - 15:24:45 EST


On Mon, 30 Aug 2004 19:29:53 -0700 (PDT), Linus Torvalds
<torvalds@xxxxxxxx> wrote:

> Which implies that the only way to fix it sanely is literally to have K3b
> open the device for writing, and then everything will be happy.
>
> As far as I can tell, the fix should be a simple one-liner: make sure that
> K3b opens the device with O_RDWR | O_NONBLOCK instead of using O_RDONLY |
> O_NONBLOCK. The fix looks trivial, it's in
>
> src/device/k3bdevice.cpp:
> int K3bCdDevice::openDevice( const char* name );
>
> (two places).
>

Checked k3b on CVS and it does this now :

int flags = O_NONBLOCK;
if( write )
flags |= O_RDWR;
else
flags |= O_RDONLY;
.....
fd = ::open( name, flags );

which already fixes the issue. Right?

Cheers,
ismail

--
Time is what you make of it
-
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/