]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libblkid: (drbd) use magics
authorThomas Weißschuh <thomas@t-8ch.de>
Sat, 30 Sep 2023 21:58:05 +0000 (23:58 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Sun, 1 Oct 2023 08:33:05 +0000 (10:33 +0200)
commit876c2f283819887ae61afb078717fbc88e76eb27
tree9f81f7d8dd0ee58f77191ceb0eabe4f12b401f47
parent2816a817149c792fa836d9ab06b64934aee8ac33
libblkid: (drbd) use magics

Reuse more of the standard prober functionality.
This also avoids a potential unaligned access when comparing the
superblock magic as a number.
In case the superblock was already cached by a different loader the
return address may have been unaligned leading to undefined behavior.

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