From: Simon Wilkinson Date: Mon, 23 May 2011 05:20:35 +0000 (+0100) Subject: vlserver: Make space in extent block explicit X-Git-Tag: openafs-devel-1_7_1~441 X-Git-Url: http://git.openafs.org/?p=openafs.git;a=commitdiff_plain;h=a082c4eeaeacb537f3c94d2e37a98a2a0438f2a7 vlserver: Make space in extent block explicit The address entry side of the union within the extent addr block actually has a significant amount of free space. It looks as though the original author assumed that a UUID required 16 32-bit words, rather than 16 octets, and sized the structure to match. Make the free space within the structure explicit, so that it can be used for future expansion Verified with gdb vlserver (gdb) print sizeof(struct extentaddr) $1 = 128 Change-Id: If67f669fb298763f054ce82447a4513c59ef7526 Reviewed-on: http://gerrit.openafs.org/4775 Tested-by: BuildBot Reviewed-by: Derrick Brashear --- diff --git a/src/vlserver/vlserver.p.h b/src/vlserver/vlserver.p.h index f84624c..d324493 100644 --- a/src/vlserver/vlserver.p.h +++ b/src/vlserver/vlserver.p.h @@ -114,6 +114,7 @@ struct extentaddr { afsUUID hostuuid; afs_int32 uniquifier; afs_uint32 addrs[VL_MAXIPADDRS_PERMH]; + afs_int32 spares[12]; } _ex_addrentry; } _ex_un; };