vlserver: Make space in extent block explicit
authorSimon Wilkinson <sxw@your-file-system.com>
Mon, 23 May 2011 05:20:35 +0000 (06:20 +0100)
committerDerrick Brashear <shadow@dementia.org>
Sun, 5 Jun 2011 14:06:12 +0000 (07:06 -0700)
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 <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>

src/vlserver/vlserver.p.h

index f84624c..d324493 100644 (file)
@@ -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;
 };