2 * Copyright 2000, International Business Machines Corporation and others.
5 * This software has been released under the terms of the IBM Public
6 * License. For details, see the LICENSE file in the top-level source
7 * directory or online at http://www.openafs.org/dl/license10.html
12 * Common values and structures used in the AFS File Server
13 * and Cache Manager interfaces.
16 %#ifndef FSINT_COMMON_XG
25 afs_uint32 CallBackVersion;
26 afs_uint32 ExpirationTime;
27 afs_uint32 CallBackType;
30 struct AFSDBLockDesc {
41 struct AFSDBCacheEntry {
43 afs_int32 cell; /*Cell part of the fid*/
44 AFSFid netFid; /*Network part of the fid*/
46 afs_int32 DataVersion;
47 struct AFSDBLockDesc lock;
57 struct AFSDBCacheEntry64 {
59 afs_int32 cell; /*Cell part of the fid*/
60 AFSFid netFid; /*Network part of the fid*/
62 afs_int32 DataVersion;
63 struct AFSDBLockDesc lock;
75 struct AFSDBLockDesc lock;
80 afs_int32 cell; /*Cell part of the fid*/
81 AFSFid netFid; /*Network part of the fid*/
83 afs_int32 DataVersion;
84 struct AFSDBLockDesc lock;
97 const CB_EXCLUSIVE = 1;
101 const AFSNAMEMAX = 256; /*Max size for name*/
102 const AFSPATHMAX = 1024; /*Max size for pathname*/
105 * Define the maximum opaque structure to be passed.
107 const AFSOPAQUEMAX = 1024;
108 typedef opaque AFSOpaque <AFSOPAQUEMAX>;
111 * Define the maximum arrays for passing callback fids and callbacks
115 typedef AFSFid AFSCBFids<AFSCBMAX>;
116 typedef AFSCallBack AFSCBs<AFSCBMAX>;
119 * Define the version of Cache Manager and File Server extended statistics
122 const AFSCB_XSTAT_VERSION = 2;
123 const AFS_XSTAT_VERSION = 2;
126 * Define the maximum arrays for passing extended statistics information
127 * for the Cache Manager and File Server back to our caller.
129 const AFSCB_MAX_XSTAT_LONGS = 2048;
130 const AFS_MAX_XSTAT_LONGS = 1024;
132 typedef afs_int32 AFSCB_CollData<AFSCB_MAX_XSTAT_LONGS>;
133 typedef afs_int32 AFS_CollData<AFS_MAX_XSTAT_LONGS>;
136 * Define the identifiers for the accessible extended stats data
139 const AFSCB_XSTATSCOLL_CALL_INFO = 0; /*CM call counting & info*/
140 const AFSCB_XSTATSCOLL_PERF_INFO = 1; /*CM performance info*/
141 const AFSCB_XSTATSCOLL_FULL_PERF_INFO = 2; /*CM performance info*/
143 const AFS_XSTATSCOLL_CALL_INFO = 0; /*FS call counting & info*/
144 const AFS_XSTATSCOLL_PERF_INFO = 1; /*FS performance info*/
145 const AFS_XSTATSCOLL_FULL_PERF_INFO = 2; /*Full FS performance info*/
146 const AFS_XSTATSCOLL_CBSTATS = 3; /*Callback package counters */
148 typedef afs_uint32 VolumeId;
149 typedef afs_uint32 VolId;
150 typedef afs_uint32 VnodeId;
151 typedef afs_uint32 Unique;
152 typedef afs_uint32 UserId;
153 typedef afs_uint32 FileVersion;
154 typedef afs_int32 ErrorCode;
155 typedef afs_int32 Rights;
157 const AFS_DISKNAMESIZE = 32;
158 typedef opaque DiskName[AFS_DISKNAMESIZE];
160 const CALLBACK_VERSION = 1;
162 const AFS_MAX_INTERFACE_ADDR = 32;
163 struct interfaceAddr { /* for multihomed clients */
164 int numberOfInterfaces;
166 afs_int32 addr_in[AFS_MAX_INTERFACE_ADDR]; /* interface addresses */
167 afs_int32 subnetmask[AFS_MAX_INTERFACE_ADDR]; /* subnet masks in net ord */
168 afs_int32 mtu[AFS_MAX_INTERFACE_ADDR]; /* MTU */
171 const AFSMAXCELLHOSTS = 8; /*Max VLDB servers per cell*/
172 typedef afs_int32 serverList<AFSMAXCELLHOSTS>;
174 typedef afs_uint32 cacheConfig<>;
176 const AFSCAPABILITIESMAX = 196;
177 typedef afs_uint32 Capabilities<AFSCAPABILITIESMAX>;
179 /* Viced Capability Flags */
180 const VICED_CAPABILITY_ERRORTRANS = 0x0001;
181 const VICED_CAPABILITY_64BITFILES = 0x0002;
182 const VICED_CAPABILITY_WRITELOCKACL = 0x0004;
183 const VICED_CAPABILITY_SANEACLS = 0x0008;
185 /* Cache Manager Capability Flags */
186 const CLIENT_CAPABILITY_ERRORTRANS = 0x0001;
188 %#endif /* FSINT_COMMON_XG */