Remove unused xdr types 04/14404/4
authorAndrew Deason <adeason@sinenomine.net>
Mon, 19 Oct 2020 23:30:27 +0000 (18:30 -0500)
committerBenjamin Kaduk <kaduk@mit.edu>
Fri, 6 Nov 2020 19:29:37 +0000 (14:29 -0500)
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>

doc/man-pages/pod1/rxgen.pod
src/bozo/bosint.xg
src/bubasics/butc.xg
src/fsint/afsint.xg
src/fsint/common.xg
src/ubik/ubik_int.xg
src/vlserver/vldbint.xg

index dc05a71..f14e26c 100644 (file)
@@ -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 */
 
index cdd7745..4b836b6 100644 (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 {
index d5ae15b..779d9dc 100644 (file)
@@ -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 */
index 704f61b..e31187e 100644 (file)
@@ -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;
index 253efc5..7093cc9 100644 (file)
@@ -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];
index 78b2517..c6b657e 100644 (file)
@@ -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;
index 523fe80..47c05a4 100644 (file)
@@ -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