]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libblkid: check for multi-session CDROMs
authorKarel Zak <kzak@redhat.com>
Wed, 27 Apr 2016 12:18:41 +0000 (14:18 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 27 Apr 2016 12:18:41 +0000 (14:18 +0200)
commita14cc9a5046bc4954b4110323c83599f90f9f35e
treea58d242b2a2a71322d1356d549c5170808560ef2
parentb362a4cb986f7eea4b884c800719971502e2e8a8
libblkid: check for multi-session CDROMs

.. and read last session if probing offset is not specified.

udev uses cdrom_id to get last session offset, so people don't see a
problem with hybrid media (audio+data), but if you execute blkid on
command line (without -O <offset>) then you get I/O errors.

It seems that we can use the same way as kernel filesystem iso9960
driver when session= mount option is not specified ... just use
CDROMMULTISESSION ioctl to get last session offset and probe this last
session rather than all medium.

Signed-off-by: Karel Zak <kzak@redhat.com>
libblkid/src/probe.c