blkiomon: fix cross-arch data analysis issue
authorMartin Peschke <mpeschke@linux.vnet.ibm.com>
Tue, 28 Oct 2008 16:07:57 +0000 (17:07 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Tue, 28 Oct 2008 18:09:40 +0000 (19:09 +0100)
This fixes cross-arch issues. Binary data gathered on System z could not
be read on x86.

Signed-off-by: Martin Peschke <mpeschke@linux.vnet.ibm.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
blkiomon.h

index 2b1f7b29cc1bd0e05781327163fa6806c518c8dc..f681ab887d25791c9dac78d954cff20751242f03 100644 (file)
@@ -40,7 +40,7 @@ struct blkiomon_stat {
        __u64 write;
        __u64 bidir;
        __u32 device;
-};
+} __attribute__ ((packed));
 
 static struct histlog2 size_hist = {
        .first = 0,