From b02fc968335870fd8a91ab04e633a54c2c8d38c4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thomas=20Wei=C3=9Fschuh?= Date: Fri, 25 Nov 2022 14:51:14 +0100 Subject: [PATCH] libblkid: bcache: pack superblock struct --- libblkid/src/superblocks/bcache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- 2.47.2