vol-dafs-aix-fixes-20080313
authorTom Keiser <tkeiser@sinenomine.net>
Fri, 14 Mar 2008 04:41:20 +0000 (04:41 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Fri, 14 Mar 2008 04:41:20 +0000 (04:41 +0000)
LICENSE IPL10
FIXES 88087

* xlc doesn't support the inline keyword unless C99 is enabled
* xlc won't parse enumerations with trailing commas

src/vol/daemon_com.h
src/vol/fssync.h
src/vol/vnode.h
src/vol/vnode_inline.h
src/vol/volume_inline.h

index ac29ed7..41ec3ca 100644 (file)
@@ -27,6 +27,7 @@
  */
 enum SYNCOpCode {
     SYNC_COM_CHANNEL_CLOSE    = 0,      /**< request sync channel shutdown */
+    SYNC_OP_CODE_END
 };
 
 
@@ -47,6 +48,7 @@ enum SYNCReasonCode {
     SYNC_COM_ERROR            = 2,  /**< sync protocol communicaions error */
     SYNC_BAD_COMMAND          = 3,  /**< sync command code not implemented by server */
     SYNC_FAILED               = 4,  /**< sync server-side procedure failed */
+    SYNC_REASON_CODE_END
 };
 
 /* SYNC protocol reason codes
index 3bba794..b506b88 100644 (file)
@@ -50,6 +50,7 @@ enum FSYNCOpCode {
     FSYNC_VOL_FORCE_ERROR     = SYNC_COM_CODE_DECL(16), /**< force volume into error state */
     FSYNC_VOL_LEAVE_OFF       = SYNC_COM_CODE_DECL(17), /**< end vol op, but leave volume offline */
     FSYNC_VOL_QUERY_VNODE     = SYNC_COM_CODE_DECL(18), /**< query vnode state */
+    FSYNC_OP_CODE_END
 };
 
 /**
@@ -66,6 +67,7 @@ enum FSYNCReasonCode {
     FSYNC_NO_PENDING_VOL_OP   = SYNC_REASON_CODE_DECL(7), /**< no volume operation pending */
     FSYNC_VOL_PKG_ERROR       = SYNC_REASON_CODE_DECL(8), /**< error in the volume package */
     FSYNC_UNKNOWN_VNID        = SYNC_REASON_CODE_DECL(9), /**< vnode id not known by fileserver */
+    FSYNC_REASON_CODE_END
 };
 
 /* FSYNC response codes */
index 1eaf006..1c5e014 100644 (file)
@@ -155,6 +155,7 @@ enum VnFlags {
     VN_ON_HASH            = 0x1,        /**< vnode is on hash table */
     VN_ON_LRU             = 0x2,        /**< vnode is on lru list */
     VN_ON_VVN             = 0x4,        /**< vnode is on volume vnode list */
+    VN_FLAGS_END
 };
 
 
index 07d2786..d38a74d 100644 (file)
@@ -15,7 +15,7 @@
 #ifdef AFS_HPUX_ENV
 #define static_inline static __inline
 #elif defined(AFS_AIX_ENV)
-#define static_inline inline
+#define static_inline static
 #else
 #define static_inline static inline
 #endif
index cb3ca32..8a75fc6 100644 (file)
@@ -15,7 +15,7 @@
 #ifdef AFS_HPUX_ENV
 #define static_inline static __inline
 #elif defined(AFS_AIX_ENV)
-#define static_inline inline
+#define static_inline static
 #else
 #define static_inline static inline
 #endif