Files
kernel_arpi/include/uapi/linux
Jiri Kosina 7b7b68bba5 floppy: bail out in open() if drive is not responding to block0 read
In case reading of block 0 during open() fails, it is not the right thing
to let open() succeed.

Fix this by introducing FD_OPEN_SHOULD_FAIL_BIT flag, and setting it in
case the bio callback encounters an error while trying to read block 0.

As a bonus, this works around certain broken userspace (blkid), which is
not able to properly handle read()s returning IO errors. Hence be nice to
those, and bail out during open() already; if block 0 is not readable,
read()s are not going to provide any meaningful data anyway.

Signed-off-by: Jiri Kosina <jkosina@suse.cz>
2014-01-17 11:12:06 +01:00
..
2013-04-26 16:08:16 +10:00
2013-11-09 18:20:22 -05:00
2013-08-02 12:33:54 -07:00
2013-03-27 14:37:47 +00:00
2013-06-24 16:39:05 -07:00
2013-08-13 15:10:22 -07:00
2013-08-21 12:21:45 -07:00
2013-09-04 13:12:43 -04:00
2013-07-09 10:33:25 -07:00
2013-04-19 14:57:57 -04:00
2013-07-24 17:54:48 -07:00
2013-03-22 16:19:59 -07:00
2013-09-04 11:28:04 -06:00
2013-05-02 13:40:15 +03:00