diff options
author | Karel Zak | 2009-10-16 02:34:28 +0200 |
---|---|---|
committer | Karel Zak | 2009-10-16 02:34:28 +0200 |
commit | 11854e2eff8b15411bbbc35c95dc77d6a722cc6b (patch) | |
tree | 723a35834ce281bbea4c867088dc774467368867 /shlibs/blkid/src/superblocks/ext.c | |
parent | include: use c.h in canonicalize.h (diff) | |
download | kernel-qcow2-util-linux-11854e2eff8b15411bbbc35c95dc77d6a722cc6b.tar.gz kernel-qcow2-util-linux-11854e2eff8b15411bbbc35c95dc77d6a722cc6b.tar.xz kernel-qcow2-util-linux-11854e2eff8b15411bbbc35c95dc77d6a722cc6b.zip |
libblkid: add missing packed attributes
This patch add __attribute__((packed)) to almost all superblock and
disk label definitions. Well, in many cases this is not necessary, but
it's a cheap way how to keep the code robust...
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'shlibs/blkid/src/superblocks/ext.c')
-rw-r--r-- | shlibs/blkid/src/superblocks/ext.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shlibs/blkid/src/superblocks/ext.c b/shlibs/blkid/src/superblocks/ext.c index 4bccd2e79..b1bc2a8a7 100644 --- a/shlibs/blkid/src/superblocks/ext.c +++ b/shlibs/blkid/src/superblocks/ext.c @@ -76,7 +76,7 @@ struct ext2_super_block { uint64_t s_mmp_block; uint32_t s_raid_stripe_width; uint32_t s_reserved[163]; -}; +} __attribute__((packed)); /* magic string */ #define EXT_SB_MAGIC "\123\357" |