From: Thomas Weißschuh Date: Sat, 30 Sep 2023 21:55:31 +0000 (+0200) Subject: libblkid: (probe) add magic hint X-Git-Tag: v2.40-rc1~221^2~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=803d3095df83f1e87372bf7b14f0041394458b0a;p=thirdparty%2Futil-linux.git libblkid: (probe) add magic hint This hint can be used by the probing callback to make decision based on the matched magic. This avoids a awkward memcmp() on the magic string. Signed-off-by: Thomas Weißschuh --- diff --git a/libblkid/src/blkidP.h b/libblkid/src/blkidP.h index fb91185d0b..a02df7eb6f 100644 --- a/libblkid/src/blkidP.h +++ b/libblkid/src/blkidP.h @@ -146,6 +146,7 @@ struct blkid_idmag { const char *magic; /* magic string */ unsigned int len; /* length of magic */ + unsigned int hint; /* hint for prober */ const char *hoff; /* hint which contains byte offset to kboff */ long kboff; /* kilobyte offset of superblock */