Re: disfunctional floppy driver in kernels 4.5, 4.6 and 4.7

From: Wim Osterholt
Date: Wed Jun 15 2016 - 07:42:16 EST


On Wed, Jun 15, 2016 at 09:09:13AM +0200, Jiri Kosina wrote:
> > Surprising or not, the thusly compiled kernel ran fine and I could
> > handle floppies like before! (open(/dev/fd0,O_ACCMODE) succeeds.)
>
> Thanks for testing.
>
> Now next question -- what do you actually want to achieve with passing
> O_ACCMODE to open()?
>
> O_ACCMODE should primarily be used as a mask to use when extracting access
> mode bits from fcntl(F_GETFL) call.

It happens in setfdprm from fdutils. What they wanted to achieve with it
I don't know. Setting parameters or some such.
Problem is that fdutils is probably unmaintained for ten years or so.

Regards, Wim.


----- wim@xxxxxxxxxxxxxx -----