libblkid: reduce probing area for crazy CDROMs
[ Without this patch, if you burn a CD-R (in TAO mode) of the Alpine 3.4 .iso, it won’t boot! ]
Linux kernel reports devices greater than area readable by read(2).
The readable area is usually 2-3 CD blocks smaller (CD block is 2048-bytes) than size returned by BLKGETSIZE. This patch checks for this issues to avoid I/O errors in probing functions.
(from redmine: issue id 5697, created on 2016-06-09, closed on 2016-06-24)
- Revision 39171d2d by Natanael Copa on 2016-06-15T11:02:41Z:
main/util-linux: backport libblkid cdrom probe patch ref #5697
- Revision b327a132 by Natanael Copa on 2016-06-17T16:39:26Z:
main/util-linux: backport libblkid cdrom probe patch fixes #5697 (cherry picked from commit 39171d2dd47e48195dcd013893e4ff7323c5e0fe)