]> www.infradead.org Git - users/dhowells/kafs-utils.git/commitdiff
xg: Conditionalise out unused bits
authorDavid Howells <dhowells@redhat.com>
Mon, 30 Sep 2019 09:01:01 +0000 (10:01 +0100)
committerDavid Howells <dhowells@redhat.com>
Mon, 30 Sep 2019 09:01:01 +0000 (10:01 +0100)
Conditionalise out unused structures so as not to emit codecs for them.

Signed-off-by: David Howells <dhowells@redhat.com>
rpc-api/common.h
rpc-api/pts.xg
rpc-api/vldb.xg
rpc-api/volumeserver.xg

index e44faa5e49437ba1df9c4cd57c915887e7ecd58a..cbafe3605bc818e80ac1c9af30d1ba8177710aaf 100644 (file)
@@ -53,10 +53,12 @@ struct AFSFid {
        uint32_t Unique;
 };
 
+#if 0
 struct VenusFid {
        int32_t Cell;
        AFSFid  fid;
 };
+#endif
 
 struct AFSCallBack {
        uint32_t CallBackVersion;
index 8e3fe3099b7d8311bb032b076e2f4e3285ba0122..becdc2c41a4bf09876f820f139d8f8a8c0cd45b7 100644 (file)
@@ -111,6 +111,7 @@ const PRP_STATUS_ANY        = 0x800000;
 const PRSUCCESS = 0;
 const PR_REMEMBER_TIMES = 1;
 
+#if 0
 struct prentry {
        uint32_t flags;
        int32_t  id;
@@ -133,6 +134,7 @@ struct prentry {
        uint32_t child;
        char name[PR_MAXNAMELEN];
 };
+#endif
 
 struct prdebugentry {
        uint32_t flags;
index f79bdd20b67c5cf68ee9ec689e82f0065b80fb32..bc1c9d404bbfd549d12f25544d00001215db7d38 100644 (file)
@@ -264,6 +264,7 @@ struct VldbListByAttributes {
        uint32_t flag;
 };
 
+#if 0
 struct uvldbentry {
        char name[VLDB_MAXNAMELEN];
        uint32_t nServers;
@@ -284,7 +285,7 @@ struct uvldbentry {
        uint32_t spares8;
        uint32_t spares9;
 };
-
+#endif
 
 #if 0
 struct single_vldbentry {
@@ -308,7 +309,9 @@ const VL_MAX_BULK_ADDRS = 1024;
 
 typedef vldbentry bulkentries<>;
 typedef nvldbentry nbulkentries<>;
+#if 0
 typedef uvldbentry ubulkentries<>;
+#endif
 typedef uint32_t bulkaddrs<VL_MAX_BULK_ADDRS>;
 
 
index 2a96c4ad7328c88cfa083677bcbfd53491e26a6a..e9235a3d3d40e3cbad2060d47a50ed53b790a050 100644 (file)
@@ -118,6 +118,7 @@ const VTDeleteOnSalvage = 1;
 const VTOutOfService = 2;
 const VTDeleted = 4;
 
+#if 0
 struct volDescription {
        char volName[VOLSER_MAXVOLNAME];
        uint32_t volId;
@@ -130,6 +131,7 @@ struct partList {
        int32_t partId[26];
        uint32_t partFlags[26];
 };
+#endif
 
 struct volser_status {
        uint32_t volID;