]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libblkid: introduce helper to get offset for idmag
authorThomas Weißschuh <thomas@t-8ch.de>
Sat, 30 Dec 2023 23:26:22 +0000 (00:26 +0100)
committerThomas Weißschuh <thomas@t-8ch.de>
Sun, 31 Dec 2023 12:07:39 +0000 (13:07 +0100)
commit0928e6ed566bc05218851f084915bde9cfaa42e0
treec34d3daf8f11a34758647b17cf0059686f99cc2d
parentc243442962ee43e26c8cd6d0e08acd3fb92be07d
libblkid: introduce helper to get offset for idmag

As idmag->kboff can be negative to refer to an offset from the end of
the device, introduce a helper so probers don't have to worry about this
detail.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
libblkid/src/blkidP.h
libblkid/src/probe.c