From: David Howells Date: Wed, 26 Aug 2020 09:11:44 +0000 (+0100) Subject: Adjust .xg files X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=2c71a3e9bfb39061e4415944e05848e33d34cfc6;p=users%2Fdhowells%2Fkafs-utils.git Adjust .xg files --- diff --git a/rpc-api/fs.xg b/rpc-api/fs.xg index b0f999f..c062bf7 100644 --- a/rpc-api/fs.xg +++ b/rpc-api/fs.xg @@ -42,6 +42,23 @@ package RXAFS_ typedef int32_t ViceIds; typedef int32_t IPAddrs; +/* Error codes */ +const VRESTARTING = -100; /* Server is restarting */ +const VSALVAGE = 101; /* Volume needs salvaging */ +const VNOVNODE = 102; /* No such file/dir (vnode) */ +const VNOVOL = 103; /* No such volume or volume unavailable */ +const VVOLEXISTS = 104; /* Volume name already exists */ +const VNOSERVICE = 105; /* Volume not currently in service */ +const VOFFLINE = 106; /* Volume is currently offline (more info available [VVL-spec]) */ +const VONLINE = 107; /* Volume is already online */ +const VDISKFULL = 108; /* Disk partition is full */ +const VOVERQUOTA = 109; /* Volume's maximum quota exceeded */ +const VBUSY = 110; /* Volume is temporarily unavailable */ +const VMOVED = 111; /* Volume moved to new server - ask this FS where */ +const VIO = 112; /* I/O error in volume */ +const VSALVAGING = 113; /* Volume is being salvaged */ +const VRESTRICTED = 120; /* Volume is restricted from using */ + /* * Interface */ diff --git a/rpc-api/rxgen.xg b/rpc-api/rxgen.xg deleted file mode 100644 index 986d45d..0000000 --- a/rpc-api/rxgen.xg +++ /dev/null @@ -1,32 +0,0 @@ -/* -*-c-*- - **************************************************************************** - * Copyright IBM Corporation 1988, 1989 - All Rights Reserved * - * * - * Permission to use, copy, modify, and distribute this software and its * - * documentation for any purpose and without fee is hereby granted, * - * provided that the above copyright notice appear in all copies and * - * that both that copyright notice and this permission notice appear in * - * supporting documentation, and that the name of IBM not be used in * - * advertising or publicity pertaining to distribution of the software * - * without specific, written prior permission. * - * * - * IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL * - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL IBM * - * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY * - * DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER * - * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING * - * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - **************************************************************************** - */ - -package RXGEN_ - -/* Error codes */ -const RXGEN_CC_MARSHAL = -450; -const RXGEN_CC_UNMARSHAL = -451; -const RXGEN_SS_MARSHAL = -452; -const RXGEN_SS_UNMARSHAL = -453; -const RXGEN_DECODE = -454; -const RXGEN_OPCODE = -455; -const RXGEN_SS_XDRFREE = -456; -const RXGEN_CC_XDRFREE = -457; diff --git a/rpc-api/rxkad.xg b/rpc-api/rxkad.xg deleted file mode 100644 index f089e27..0000000 --- a/rpc-api/rxkad.xg +++ /dev/null @@ -1,19 +0,0 @@ -/* -*-c-*- */ - - -package RXKAD_ - -/* Error codes */ -const RXKADINCONSISTENCY = 19270400; /* security module structure inconsistent */ -const RXKADPACKETSHORT = 19270401; /* packet too short for security challenge */ -const RXKADLEVELFAIL = 19270402; /* security level negotiation failed */ -const RXKADTICKETLEN = 19270403; /* ticket length too short or too long */ -const RXKADOUTOFSEQUENCE = 19270404; /* packet had bad sequence number */ -const RXKADNOAUTH = 19270405; /* caller not authorised */ -const RXKADBADKEY = 19270406; /* illegal key: bad parity or weak */ -const RXKADBADTICKET = 19270407; /* security object was passed a bad ticket */ -const RXKADUNKNOWNKEY = 19270408; /* ticket contained unknown key version number */ -const RXKADEXPIRED = 19270409; /* authentication expired */ -const RXKADSEALEDINCON = 19270410; /* sealed data inconsistent */ -const RXKADDATALEN = 19270411; /* user data too long */ -const RXKADILLEGALLEVEL = 19270412; /* caller not authorised to use encrypted conns */ diff --git a/rpc-api/volumeserver.xg b/rpc-api/volumeserver.xg index 41588ed..a9ef5e1 100644 --- a/rpc-api/volumeserver.xg +++ b/rpc-api/volumeserver.xg @@ -83,7 +83,6 @@ const VOLGETCAPABILITIES= 65552; const PARTVALID = 0x01; const VOK = 0x02; -const VBUSY = 110; /* Error codes */ const VOLSERTRELE_ERROR = 1492325120; diff --git a/rpc-api/yfs.xg b/rpc-api/yfs.xg index d37f9d0..468808f 100644 --- a/rpc-api/yfs.xg +++ b/rpc-api/yfs.xg @@ -15,7 +15,7 @@ package RXYFS_ const RXYFS_SERVICE_ID = 2500; -const RXAFSCB_SERVICE_ID = 2501; +const RXYFSCB_SERVICE_ID = 2501; const LockMandatoryRead = 0x100; const LockMandatoryWrite = 0x101;