mirror of
https://git.openafs.org/openafs.git
synced 2025-01-18 15:00:12 +00:00
Remove unused xdr types
Numerous types and constants are defined in our various RPC-L files that are never used or referenced by anything. Remove them. Change-Id: I0b03be1ce0e186a88f80d2f3f7a66a1e25965ff3 Reviewed-on: https://gerrit.openafs.org/14404 Reviewed-by: Benjamin Kaduk <kaduk@mit.edu> Tested-by: BuildBot <buildbot@rampaginggeek.com>
This commit is contained in:
parent
0787a2c8ae
commit
7b0a66f63b
@ -726,8 +726,6 @@ some of the common cases.
|
||||
unsigned long Unique;
|
||||
};
|
||||
|
||||
typedef long ViceDataType;
|
||||
|
||||
/* Note that TEST would be equivalent to "HEADER" only during the
|
||||
processing of the header, *.h, file */
|
||||
|
||||
|
@ -7,8 +7,6 @@
|
||||
* directory or online at http://www.openafs.org/dl/license10.html
|
||||
*/
|
||||
|
||||
typedef int bstring; /*force xdr output */
|
||||
|
||||
const BOZO_BSSIZE = 256;
|
||||
%#undef min
|
||||
struct bozo_netKTime {
|
||||
|
@ -95,12 +95,6 @@ struct tc_tapeLabel {
|
||||
afs_uint32 tapeId; /* The tapeId (or dumpId of the initial dump) */
|
||||
};
|
||||
|
||||
/* structure to describe tapes */
|
||||
struct tc_TMInfo {
|
||||
afs_int32 capacity; /* in 1024 byte units */
|
||||
afs_int32 flags; /* flags, unused at present */
|
||||
};
|
||||
|
||||
struct tc_tapeSet { /* describes a tape sequence */
|
||||
afs_int32 id; /* unique id of tapeSet, assigned by budb */
|
||||
char tapeServer[TC_MAXHOSTLEN]; /* name of server where this tape is */
|
||||
|
@ -18,8 +18,6 @@
|
||||
%#define VICETOKENDEAD 1235
|
||||
%#define AFS_LOCKWAIT (5*60)
|
||||
|
||||
typedef afs_int32 ViceDataType;
|
||||
|
||||
%#define Invalid 0
|
||||
%#define File 1
|
||||
%#define Directory 2
|
||||
@ -78,8 +76,6 @@ struct AFSStoreStatus {
|
||||
%#define AFS_SETSEGSIZE 16
|
||||
%#define AFS_FSYNC 1024
|
||||
|
||||
typedef afs_int32 ViceVolumeType;
|
||||
|
||||
%#define ReadOnly 0
|
||||
%#define ReadWrite 1
|
||||
|
||||
@ -241,11 +237,6 @@ typedef AFSFetchStatus AFSBulkStats<AFSCBMAX>;
|
||||
%#define LockExtend 2
|
||||
%#define LockRelease 3
|
||||
|
||||
typedef afs_int32 ViceOfflineType;
|
||||
|
||||
%#define NoSalvage 0
|
||||
%#define Salvage 1
|
||||
|
||||
%#define MAXCMDINT64S 3
|
||||
%#define MAXCMDINT32S 200
|
||||
%#define MAXCMDCHARS 256
|
||||
@ -259,92 +250,6 @@ typedef afs_int32 ViceOfflineType;
|
||||
%#define CMD_CHECKHSMMETADATA 8
|
||||
%#define CMD_FETCHSTATUS 9
|
||||
|
||||
%#define VOLATTR_DESIREDRESIDENCYMASK 1
|
||||
%#define VOLATTR_UNDESIREDRESIDENCYMASK 2
|
||||
%#define VOLATTR_SETSPECIALACCESSFLAG 4
|
||||
struct ExtendedVolAttrInputs {
|
||||
afs_uint32 Mask;
|
||||
afs_uint32 Volume;
|
||||
afs_uint32 DesiredResidencyMask;
|
||||
afs_uint32 Spare1[10];
|
||||
afs_uint32 UnDesiredResidencyMask;
|
||||
afs_uint32 Spare2[9];
|
||||
afs_uint32 SpecialAccessFlag;
|
||||
};
|
||||
|
||||
struct ExtendedVolAttrOutputs {
|
||||
afs_uint32 DesiredResidencyMask;
|
||||
afs_uint32 Spare1[10];
|
||||
afs_uint32 UnDesiredResidencyMask;
|
||||
afs_uint32 Spare2[9];
|
||||
afs_uint32 SpecialAccessFlag;
|
||||
};
|
||||
|
||||
struct TagsArray {
|
||||
afs_uint32 TagsArray_len;
|
||||
afs_uint32 TagsArray_val[184];
|
||||
};
|
||||
|
||||
struct AccessHistory {
|
||||
afs_uint64 Size;
|
||||
afs_uint32 ModTime;
|
||||
afs_uint32 NonSpoolingFetches;
|
||||
afs_uint32 UserSpoolingFetches;
|
||||
afs_uint32 MigratorSpoolingFetches;
|
||||
afs_uint32 LastUserMigrationEvent;
|
||||
afs_uint32 MigrateMe;
|
||||
afs_uint32 Time0;
|
||||
afs_uint32 Type0;
|
||||
afs_uint32 LocalAccess0;
|
||||
afs_uint32 Residency0;
|
||||
afs_uint32 Time1;
|
||||
afs_uint32 Type1;
|
||||
afs_uint32 LocalAccess1;
|
||||
afs_uint32 Residency1;
|
||||
afs_uint32 Time2;
|
||||
afs_uint32 Type2;
|
||||
afs_uint32 LocalAccess2;
|
||||
afs_uint32 Residency2;
|
||||
afs_uint32 Time3;
|
||||
afs_uint32 Type3;
|
||||
afs_uint32 LocalAccess3;
|
||||
afs_uint32 Residency3;
|
||||
afs_uint32 Time4;
|
||||
afs_uint32 Type4;
|
||||
afs_uint32 LocalAccess4;
|
||||
afs_uint32 Residency4;
|
||||
};
|
||||
|
||||
struct AccessHistoryOld {
|
||||
afs_uint32 Size;
|
||||
afs_uint32 ModTime;
|
||||
afs_uint32 NonSpoolingFetches;
|
||||
afs_uint32 UserSpoolingFetches;
|
||||
afs_uint32 MigratorSpoolingFetches;
|
||||
afs_uint32 LastUserMigrationEvent;
|
||||
afs_uint32 MigrateMe;
|
||||
afs_uint32 Time0;
|
||||
afs_uint32 Type0;
|
||||
afs_uint32 LocalAccess0;
|
||||
afs_uint32 Residency0;
|
||||
afs_uint32 Time1;
|
||||
afs_uint32 Type1;
|
||||
afs_uint32 LocalAccess1;
|
||||
afs_uint32 Residency1;
|
||||
afs_uint32 Time2;
|
||||
afs_uint32 Type2;
|
||||
afs_uint32 LocalAccess2;
|
||||
afs_uint32 Residency2;
|
||||
afs_uint32 Time3;
|
||||
afs_uint32 Type3;
|
||||
afs_uint32 LocalAccess3;
|
||||
afs_uint32 Residency3;
|
||||
afs_uint32 Time4;
|
||||
afs_uint32 Type4;
|
||||
afs_uint32 LocalAccess4;
|
||||
afs_uint32 Residency4;
|
||||
};
|
||||
|
||||
struct FsCmdInputs {
|
||||
afs_int32 command;
|
||||
struct AFSFid fid;
|
||||
|
@ -75,22 +75,6 @@ struct AFSDBLock {
|
||||
struct AFSDBLockDesc lock;
|
||||
};
|
||||
|
||||
struct AFSDEntry {
|
||||
afs_int32 addr;
|
||||
afs_int32 cell; /*Cell part of the fid*/
|
||||
AFSFid netFid; /*Network part of the fid*/
|
||||
afs_int32 Length;
|
||||
afs_int32 DataVersion;
|
||||
struct AFSDBLockDesc lock;
|
||||
afs_int32 callback;
|
||||
afs_int32 cbExpires;
|
||||
short refCount;
|
||||
short opens;
|
||||
short writers;
|
||||
char mvstat;
|
||||
char states;
|
||||
};
|
||||
|
||||
/*
|
||||
* Callback types.
|
||||
*/
|
||||
@ -151,8 +135,6 @@ typedef afs_uint32 VnodeId;
|
||||
typedef afs_uint32 Unique;
|
||||
typedef afs_uint32 UserId;
|
||||
typedef afs_uint32 FileVersion;
|
||||
typedef afs_int32 ErrorCode;
|
||||
typedef afs_int32 Rights;
|
||||
|
||||
const AFS_DISKNAMESIZE = 32;
|
||||
typedef opaque DiskName[AFS_DISKNAMESIZE];
|
||||
|
@ -9,12 +9,6 @@
|
||||
|
||||
prefix S
|
||||
|
||||
struct BDesc {
|
||||
afs_int32 host;
|
||||
short portal;
|
||||
afs_int32 session;
|
||||
};
|
||||
|
||||
struct ubik_version {
|
||||
afs_int32 epoch;
|
||||
afs_int32 counter;
|
||||
|
@ -67,9 +67,6 @@ const VLUPDATE_REPS_MODFLAG = 0x1000;
|
||||
|
||||
/*typedef string volumename<VL_MAXNAMELEN>;*/
|
||||
|
||||
const DEFAULTBULK = 10000;
|
||||
typedef opaque bulk<DEFAULTBULK>;
|
||||
|
||||
/* Structure used by the VLListAttributes routine */
|
||||
struct VldbListByAttributes {
|
||||
afs_uint32 Mask;
|
||||
@ -207,7 +204,6 @@ const VLOP_DUMP = 0x100;
|
||||
|
||||
typedef vldbentry bulkentries<>;
|
||||
typedef nvldbentry nbulkentries<>;
|
||||
typedef uvldbentry ubulkentries<>;
|
||||
/*
|
||||
* 500 is an arbitrary implementation limit, larger than what we support storing.
|
||||
* It lets the XDR decoder detect an attack (excessively large input) and reject
|
||||
|
Loading…
Reference in New Issue
Block a user