From: Thomas Weißschuh Date: Fri, 25 Nov 2022 13:51:14 +0000 (+0100) Subject: libblkid: bcache: pack superblock struct X-Git-Tag: v2.39-rc1~403^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b02fc968335870fd8a91ab04e633a54c2c8d38c4;p=thirdparty%2Futil-linux.git libblkid: bcache: pack superblock struct --- diff --git a/libblkid/src/superblocks/bcache.c b/libblkid/src/superblocks/bcache.c index 9f4da5e5d7..c0626082c7 100644 --- a/libblkid/src/superblocks/bcache.c +++ b/libblkid/src/superblocks/bcache.c @@ -26,7 +26,7 @@ struct bcache_super_block { uint64_t version; uint8_t magic[16]; /* bcache file system identifier */ uint8_t uuid[16]; /* device identifier */ -}; +} __attribute__((packed)); /* magic string */ #define BCACHE_SB_MAGIC "\xc6\x85\x73\xf6\x4e\x1a\x45\xca\x82\x65\xf5\x7f\x48\xba\x6d\x81"