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/zfs.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/zfs.c')
-rw-r--r-- | shlibs/blkid/src/superblocks/zfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shlibs/blkid/src/superblocks/zfs.c b/shlibs/blkid/src/superblocks/zfs.c index 02033af1f..2d626427f 100644 --- a/shlibs/blkid/src/superblocks/zfs.c +++ b/shlibs/blkid/src/superblocks/zfs.c @@ -24,7 +24,7 @@ struct zfs_uberblock { uint64_t ub_guid_sum; /* sum of all vdev guids */ uint64_t ub_timestamp; /* UTC time of last sync */ /*blkptr_t ub_rootbp;*/ /* MOS objset_phys_t */ -}; +} __attribute__((packed)); static int probe_zfs(blkid_probe pr, const struct blkid_idmag *mag) { |