]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libblkid: iso9660: add support for multisession via session_offset hint
authorPali Rohár <pali.rohar@gmail.com>
Thu, 5 Nov 2020 18:22:58 +0000 (19:22 +0100)
committerPali Rohár <pali.rohar@gmail.com>
Tue, 10 Nov 2020 22:40:53 +0000 (23:40 +0100)
commitcf2f10bb5929e6b28195017de99f1ec1843e0671
tree1124e6b68ad61679c80f1359c594a2d36b6954d8
parentb5c5b42014619358371addfd7864dc9401647745
libblkid: iso9660: add support for multisession via session_offset hint

The only required change is to read disc from offset specified by
session_offset instead of beginning of disc (offset 0).

So either blkid's --offset or --hint session_offset argument would work for
correct detection of multisession ISO9660 optical disc or disc image.

Although the ISO9660 specification allows also non-2kB sector sizes,
current blkid implementation has hardcoded ISO9660 sector size to 2kB.
Therefore there is check that session_offset is multiple of 2048.

Signed-off-by: Pali Rohár <pali.rohar@gmail.com>
libblkid/src/superblocks/iso9660.c