]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libblkid: detect session_offset hint for optical discs
authorPali Rohár <pali.rohar@gmail.com>
Thu, 5 Nov 2020 18:21:15 +0000 (19:21 +0100)
committerPali Rohár <pali.rohar@gmail.com>
Tue, 10 Nov 2020 22:40:52 +0000 (23:40 +0100)
commit427ea35512b0edc012cf1e5bac5ff6295f912a1d
treea0033df63ba984898c4cdcbc0ea73955b26dd328
parentbfd4da56283daed2af2d969530628045f57bbf57
libblkid: detect session_offset hint for optical discs

When offset and session_offset hint are not specified then sets
session_offset hint from CDROMMULTISESSION ioctl which returns start
position of the last session of multisession optical disc.

It is expected that session_offset hint contains position offset in bytes
where starts session of multisession optical disc which should be read.

Filesystems designed for optical discs are expected to use this value when
dealing with multisession optical disc to know where they should start
reading optical disc or image of optical disc.

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