summaryrefslogtreecommitdiffstats
path: root/shlibs/blkid/src/superblocks/zfs.c
diff options
context:
space:
mode:
authorKarel Zak2009-10-16 02:34:28 +0200
committerKarel Zak2009-10-16 02:34:28 +0200
commit11854e2eff8b15411bbbc35c95dc77d6a722cc6b (patch)
tree723a35834ce281bbea4c867088dc774467368867 /shlibs/blkid/src/superblocks/zfs.c
parentinclude: use c.h in canonicalize.h (diff)
downloadkernel-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.c2
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)
{