]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libblkid: implement zone-aware probing
authorNaohiro Aota <naohiro.aota@wdc.com>
Mon, 26 Apr 2021 05:50:34 +0000 (14:50 +0900)
committerKarel Zak <kzak@redhat.com>
Mon, 24 May 2021 11:39:53 +0000 (13:39 +0200)
commitb250fbbf5666d0b7289c223c276edd301cd8c653
tree2ca9bdfe39ea6cdfb53fb81e9b9829fbac6ef618
parent3387ad72a621334527c3a75c6a924cac03e7a992
libblkid: implement zone-aware probing

This patch makes libblkid zone-aware. It can probe the magic located at
some offset from the beginning of some specific zone of a device.

This patch introduces some new fields to struct blkid_idmag. They indicate
the magic location is placed related to a zone and the offset in the zone.

Also, this commit introduces `zone_size` to struct blkid_struct_probe. It
stores the size of zones of a device.

Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com>
libblkid/src/blkidP.h
libblkid/src/probe.c