From 03d26f8087326966d827786c648e4e6d24c31d7a Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Sat, 1 Feb 2014 20:26:36 +0100 Subject: cwfs: use pragma pack for on disk structures for amd64 --- sys/src/cmd/cwfs/portdat.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'sys/src/cmd/cwfs/portdat.h') diff --git a/sys/src/cmd/cwfs/portdat.h b/sys/src/cmd/cwfs/portdat.h index d360ed841..80af31044 100644 --- a/sys/src/cmd/cwfs/portdat.h +++ b/sys/src/cmd/cwfs/portdat.h @@ -77,6 +77,9 @@ typedef struct Tm Tm; typedef struct Uid Uid; typedef struct Wpath Wpath; +#pragma pack on + +/* DONT TOUCH, this is the disk structure */ struct Tag { short pad; /* make tag end at a long boundary */ @@ -139,6 +142,8 @@ struct Dentry long mtime; }; +#pragma pack off + /* * derived constants */ @@ -399,6 +404,8 @@ struct Uid char name[NAMELEN]; /* user name */ }; +#pragma pack on + /* DONT TOUCH, this is the disk structure */ struct Fbuf { @@ -413,6 +420,8 @@ struct Superb Super1; }; +#pragma pack off + struct Conf { ulong nmach; /* processors */ @@ -530,6 +539,7 @@ typedef struct /* * cw device */ +#pragma pack on /* DONT TOUCH, this is the disk structure */ struct Cache @@ -569,6 +579,8 @@ struct Label /* label block on Devlworms, in last block */ char service[64]; /* documentation only */ }; +#pragma pack off + typedef struct Map Map; struct Map { char *from; -- cgit v1.2.3