]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libblkid: allow to specify offset defined by hint for blkid_probe_get_idmag()
authorPali Rohár <pali.rohar@gmail.com>
Thu, 5 Nov 2020 18:22:22 +0000 (19:22 +0100)
committerPali Rohár <pali.rohar@gmail.com>
Tue, 10 Nov 2020 22:40:53 +0000 (23:40 +0100)
commit3e31657db5353f7b94ecb066ee9787e26b3a4a1d
tree9f47e5557ec9fefeb80d60f85c7f062190b498b5
parent427ea35512b0edc012cf1e5bac5ff6295f912a1d
libblkid: allow to specify offset defined by hint for blkid_probe_get_idmag()

Extends struct blkid_idmag with a new member hoff which specify name of the
hint used for blkid_probe_get_hint() function to retrieve offset to kboff.

blkid_probe_get_idmag() will use supplied hint offset in bytes as a start
position from which the final offsets for magic strings are calculated.

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