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

Jiri Kosina
2016-06-15T07:09:17Z

On Tue, 14 Jun 2016, Wim Osterholt 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.

--
Jiri Kosina
SUSE Labs