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-11-20 13:25:04 -08:00
2013-10-31 14:48:38 +00:00
2013-11-20 13:25:04 -08:00
2013-11-19 15:53:02 -05:00
2013-10-29 12:53:07 +02:00
2013-11-20 13:25:04 -08:00
2013-11-13 17:40:34 +09:00
2014-01-17 11:12:06 +01:00
2013-11-05 15:58:21 -05:00
2013-11-14 08:51:29 +09:00
2013-12-03 19:22:17 -07:00
2013-11-21 19:46:00 -08:00
2013-11-15 16:47:22 -08:00
2013-10-22 22:36:50 +02:00
2013-11-14 17:19:20 -05:00
2013-11-20 13:25:04 -08:00
2013-11-14 13:41:48 +09:00
2013-11-15 09:32:21 +09:00
2013-11-07 19:24:20 +01:00
2013-11-20 13:20:24 -08:00
2013-11-18 14:51:52 -08:00
2013-11-15 09:32:21 +09:00
2013-11-14 07:55:21 +09:00
2013-11-14 23:14:43 +01:00
2013-11-21 21:10:00 +10:00
2013-11-20 13:25:04 -08:00
2013-10-19 19:53:46 -07:00
2013-11-20 08:31:01 -08:00
2013-11-20 13:25:04 -08:00
2013-11-20 13:25:04 -08:00
2013-11-19 01:06:28 +01:00
2013-11-15 09:32:23 +09:00
2013-11-22 10:52:03 -08:00
2013-11-15 16:48:22 -08:00
2013-11-15 18:57:42 -08:00
2013-11-14 08:51:29 +09:00
2013-11-20 21:52:30 -05:00
2013-10-25 10:13:25 -07:00
2013-11-07 12:13:05 +10:30
2013-11-12 16:52:17 +09:00
2013-12-03 19:16:04 -07:00
2013-11-20 13:20:24 -08:00
2013-11-15 09:32:21 +09:00
2013-11-23 22:33:51 -08:00
2013-11-15 16:47:22 -08:00
2013-11-20 13:20:24 -08:00
2013-11-20 13:25:04 -08:00
2013-11-20 13:20:24 -08:00
2013-11-22 09:57:35 -08:00
2013-11-14 11:04:38 -08:00
2013-11-14 07:55:21 +09:00
2013-11-15 14:05:15 -08:00
2013-11-22 10:53:47 -08:00
2013-11-12 16:52:17 +09:00
2013-10-24 16:18:40 +01:00
2013-11-14 10:43:17 -08:00
2013-11-20 13:25:04 -08:00
2013-11-14 23:17:21 +01:00
2013-11-18 15:35:09 -08:00
2013-11-05 02:36:57 +01:00
2013-11-13 12:09:35 +09:00
2013-11-01 11:17:57 +01:00
2013-11-15 16:47:22 -08:00
2013-10-29 11:28:11 +10:30
2013-11-21 16:42:27 -08:00
2013-11-23 22:33:49 -08:00
2013-11-23 22:33:51 -08:00
2013-11-20 13:25:04 -08:00
2013-11-23 22:33:49 -08:00
2013-11-23 22:33:47 -08:00
2013-11-19 15:50:47 -08:00
2013-11-20 13:20:24 -08:00
2013-11-13 12:09:23 +09:00
2013-11-22 10:52:03 -08:00
2013-11-07 11:42:15 +09:00
2013-11-22 10:52:03 -08:00
2013-11-16 12:45:55 -08:00
2013-11-15 13:28:47 +09:00
2013-11-15 09:32:21 +09:00
2013-11-18 21:34:19 +01:00
2013-11-20 13:25:04 -08:00
2013-11-14 13:41:48 +09:00
2013-11-14 13:41:48 +09:00