From a082c4eeaeacb537f3c94d2e37a98a2a0438f2a7 Mon Sep 17 00:00:00 2001 From: Simon Wilkinson Date: Mon, 23 May 2011 06:20:35 +0100 Subject: [PATCH] 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 --- src/vlserver/vlserver.p.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) 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; }; -- 1.7.1