https://bugzilla.novell.com/show_bug.cgi?id=773058
https://bugzilla.novell.com/show_bug.cgi?id=773058#c46
--- Comment #46 from Jiri Kosina 2014-01-10 02:05:59 CET ---
Created an attachment (id=573924)
--> (http://bugzilla.novell.com/attachment.cgi?id=573924)
[PATCH] floppy: bail out in open() if drive is not responding to block0 read
While I am still convinced that libblkid should be treating failing read()
calls properly, it's on the other hand true that kernel should rather be
returning error already during open() in case when it's certain that any
subsequent read() calls are going to fail anyway (i.e. in a situation when
block 0 can't be read during open()).
The attached patch does exactly that. It passes my testing in a sense that
blkid doesn't take ages to finish when the drive is absent.
I'd highly appreciate testing results of this patch.
Keeping NEEDINFO for clarification of read() error handling in libblkid.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.