Log binding ip address and port during startup
[openafs.git] / src / vlserver / vlserver.p.h
index 94dba96..dc6ffa0 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -38,8 +38,8 @@ extern struct vldstats dynamic_statistics;
 struct vlheader {
     struct vital_vlheader vital_header;        /* all small critical stuff are in here */
     afs_uint32 IpMappedAddr[MAXSERVERID + 1];  /* Mapping of ip addresses to relative ones */
-    afs_int32 VolnameHash[HASHSIZE];   /* hash table for vol names */
-    afs_int32 VolidHash[MAXTYPES][HASHSIZE];   /* hash table for vol ids */
+    afs_uint32 VolnameHash[HASHSIZE];  /* hash table for vol names */
+    afs_uint32 VolidHash[MAXTYPES][HASHSIZE];  /* hash table for vol ids */
     afs_int32 SIT;             /* spare for poss future use */
 };
 
@@ -63,10 +63,10 @@ struct vlentry {
     afs_int32 flags;           /* General flags */
     afs_int32 LockAfsId;       /* Person who locked entry */
     afs_int32 LockTimestamp;   /* lock time stamp */
-    afs_int32 cloneId;         /* used during cloning */
+    afs_uint32 cloneId;                /* used during cloning */
     afs_int32 spares0;         /* XXXX was AssociatedChain XXXX */
-    afs_int32 nextIdHash[MAXTYPES];    /* Next id hash table pointer (or freelist ->[0]) */
-    afs_int32 nextNameHash;    /* Next name hash table pointer */
+    afs_uint32 nextIdHash[MAXTYPES];   /* Next id hash table pointer (or freelist ->[0]) */
+    afs_uint32 nextNameHash;   /* Next name hash table pointer */
     afs_int32 spares1[2];      /* long spares */
     char name[VL_MAXNAMELEN];  /* Volume name */
     char spares3;              /* XXX was volumeType XXXX */
@@ -82,9 +82,9 @@ struct nvlentry {
     afs_int32 flags;           /* General flags */
     afs_int32 LockAfsId;       /* Person who locked entry */
     afs_int32 LockTimestamp;   /* lock time stamp */
-    afs_int32 cloneId;         /* used during cloning */
-    afs_int32 nextIdHash[MAXTYPES];    /* Next id hash table pointer (or freelist ->[0]) */
-    afs_int32 nextNameHash;    /* Next name hash table pointer */
+    afs_uint32 cloneId;                /* used during cloning */
+    afs_uint32 nextIdHash[MAXTYPES];   /* Next id hash table pointer (or freelist ->[0]) */
+    afs_uint32 nextNameHash;   /* Next name hash table pointer */
     char name[VL_MAXNAMELEN];  /* Volume name */
     u_char serverNumber[NMAXNSERVERS]; /* Server # for each server that holds volume */
     u_char serverPartition[NMAXNSERVERS];      /* Server Partition number */
@@ -95,8 +95,6 @@ typedef struct vlheader vlheader;
 typedef struct vlentry vlentry;
 typedef struct nvlentry nvlentry;
 
-#define COUNT_REQ(op) static int this_op = op-VL_LOWEST_OPCODE; dynamic_statistics.requests[this_op]++
-#define COUNT_ABO dynamic_statistics.aborts[this_op]++
 #define        DOFFSET(abase,astr,aitem) ((abase)+(((char *)(aitem)) - ((char *)(astr))))
 
 #define        VL_MHSRV_PERBLK         64
@@ -108,7 +106,8 @@ struct extentaddr {
        struct {
            afs_int32 count;    /* # of valid addresses */
            afs_int32 spares1[2];
-           afs_int32 flags;    /* must match vlentry's flags field XXX */
+           afs_int32 flags;    /* must be in the same position as the vlentry's
+                                  flags field */
            afs_uint32 contaddrs[VL_MAX_ADDREXTBLKS];
            afs_int32 spares2[24];
        } _ex_header;
@@ -116,19 +115,19 @@ struct extentaddr {
            afsUUID hostuuid;
            afs_int32 uniquifier;
            afs_uint32 addrs[VL_MAXIPADDRS_PERMH];
+           afs_uint32 flags;
+           afs_int32 spares[11];
        } _ex_addrentry;
     } _ex_un;
 };
 #define        ex_count        _ex_un._ex_header.count
-#define        ex_flags        _ex_un._ex_header.flags
+#define        ex_hdrflags     _ex_un._ex_header.flags
 #define        ex_contaddrs    _ex_un._ex_header.contaddrs
 #define        ex_hostuuid     _ex_un._ex_addrentry.hostuuid
 #define        ex_addrs        _ex_un._ex_addrentry.addrs
 #define        ex_uniquifier   _ex_un._ex_addrentry.uniquifier
+#define ex_srvflags    _ex_un._ex_addrentry.flags
 
-#define VLog(level, str)   ViceLog(5, str)
-
-struct ubik_trans;
-extern int FreeBlock(struct ubik_trans *trans, afs_int32 blockindex);
+#define VLog(level, str)   ViceLog(level, str)
 
 #endif /* _VLSERVER_ */