/*= -*- c-file-style: "bsd"; indent-tabs-mode: nil; -*-
 *
 * n4: A fast userspace NFSv4 server.
 * $Id: n4err.h,v 1.6 2001/06/20 11:53:31 mbp Exp $
 * 
 * Copyright (C) 2001 by Martin Pool <mbp@samba.org>
 * 
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public License
 * as published by the Free Software Foundation; either version 2.1 of
 * the License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public
 * License along with this program; if not, write to the Free Software
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */


START_TABLE(n4err)
    DEF_ENTRY(N4OK                    , 0)
    DEF_ENTRY(NFS4ERR_PERM            , 1)
    DEF_ENTRY(NFS4ERR_NOENT           , 2)
    DEF_ENTRY(NFS4ERR_IO              , 5)
    DEF_ENTRY(NFS4ERR_NXIO            , 6)
    DEF_ENTRY(NFS4ERR_ACCES           , 13)
    DEF_ENTRY(NFS4ERR_EXIST           , 17)
    DEF_ENTRY(NFS4ERR_XDEV            , 18)
    DEF_ENTRY(NFS4ERR_NODEV           , 19)
    DEF_ENTRY(NFS4ERR_NOTDIR          , 20)
    DEF_ENTRY(NFS4ERR_ISDIR           , 21)
    DEF_ENTRY(NFS4ERR_INVAL           , 22)
    DEF_ENTRY(NFS4ERR_FBIG            , 27)
    DEF_ENTRY(NFS4ERR_NOSPC           , 28)
    DEF_ENTRY(NFS4ERR_ROFS            , 30)
    DEF_ENTRY(NFS4ERR_MLINK           , 31)
    DEF_ENTRY(NFS4ERR_NAMETOOLONG     , 63)
    DEF_ENTRY(NFS4ERR_NOTEMPTY        , 66)
    DEF_ENTRY(NFS4ERR_DQUOT           , 69)
    DEF_ENTRY(NFS4ERR_STALE           , 70)
    DEF_ENTRY(NFS4ERR_BADHANDLE       , 10001)
    DEF_ENTRY(NFS4ERR_BAD_COOKIE      , 10003)
    DEF_ENTRY(NFS4ERR_NOTSUPP         , 10004)
    DEF_ENTRY(NFS4ERR_TOOSMALL        , 10005)
    DEF_ENTRY(NFS4ERR_SERVERFAULT     , 10006)
    DEF_ENTRY(NFS4ERR_BADTYPE         , 10007)
    DEF_ENTRY(NFS4ERR_DELAY           , 10008)
    DEF_ENTRY(NFS4ERR_SAME            , 10009)  /* nverify says attrs same */
    DEF_ENTRY(NFS4ERR_DENIED          , 10010)  /* lock unavailable        */
    DEF_ENTRY(NFS4ERR_EXPIRED         , 10011)  /* lock lease expired      */
    DEF_ENTRY(NFS4ERR_LOCKED          , 10012)  /* I/O failed due to lock  */
    DEF_ENTRY(NFS4ERR_GRACE           , 10013)  /* in grace period         */
    DEF_ENTRY(NFS4ERR_FHEXPIRED       , 10014)  /* file handle expired     */
    DEF_ENTRY(NFS4ERR_SHARE_DENIED    , 10015)  /* share reserve denied    */
    DEF_ENTRY(NFS4ERR_WRONGSEC        , 10016)  /* wrong security flavor   */
    DEF_ENTRY(NFS4ERR_CLID_INUSE      , 10017)  /* clientid in use         */
    DEF_ENTRY(NFS4ERR_RESOURCE        , 10018)  /* resource exhaustion     */
    DEF_ENTRY(NFS4ERR_MOVED           , 10019)  /* filesystem relocated    */
    DEF_ENTRY(NFS4ERR_NOFILEHANDLE    , 10020)  /* current FH is not set   */
    DEF_ENTRY(NFS4ERR_MINOR_VERS_MISMATCH , 10021)  /* minor vers not supp */
    DEF_ENTRY(NFS4ERR_STALE_CLIENTID  , 10022)
    DEF_ENTRY(NFS4ERR_STALE_STATEID   , 10023)
    DEF_ENTRY(NFS4ERR_OLD_STATEID     , 10024)
    DEF_ENTRY(NFS4ERR_BAD_STATEID     , 10025)
    DEF_ENTRY(NFS4ERR_BAD_SEQID       , 10026)
    DEF_ENTRY(NFS4ERR_NOT_SAME        , 10027)  /* verify - attrs not same */
    DEF_ENTRY(NFS4ERR_LOCK_RANGE      , 10028)
    DEF_ENTRY(NFS4ERR_SYMLINK         , 10029)
    DEF_ENTRY(NFS4ERR_READDIR_NOSPC   , 10030)
    DEF_ENTRY(NFS4ERR_LEASE_MOVED     , 10031)

    /* N4-specific error codes for internal use only.  These should
     * never go on the wire. */
    DEF_ENTRY(N4ERR_FIRST_INTERNAL    , 20000)
    DEF_ENTRY(N4ERR_CONNREFUSED       , 20001)  /* connection refused */
    DEF_ENTRY(N4ERR_NET               , 20002)  /* miscellaneous network error */
    DEF_ENTRY(N4ERR_MEM               , 20003)  /* out of memory */
    DEF_ENTRY(N4ERR_CONFIG            , 20004)  /* configuration error */
    DEF_ENTRY(N4ERR_RPC_GARBAGE       , 20005)  /* garbage RPC arguments */
    DEF_ENTRY(N4ERR_RPC_RPCVERS       , 20006)  /* unsupported RPC version */
    DEF_ENTRY(N4ERR_RPC_PROG_VERS     , 20007)  /* unsupported RPC program version */
    DEF_ENTRY(N4ERR_RPC_PROG_UNAVAIL  , 20008)  /* RPC program unavailable */
    DEF_ENTRY(N4ERR_RPC_PROCEDURE_UNAVAIL , 20009)    /* RPC procedure unavailable */
    DEF_ENTRY(N4ERR_RPC_UNEXPECTED    , 20010)  /* RPC packet out of sequence */
    DEF_ENTRY(N4ERR_RPC_SHORT         , 20011)  /* truncated RPC packet */
    DEF_ENTRY(N4ERR_RPC_NOHEADER      , 20012)  /* truncated packet doesn't even have a header */
    DEF_ENTRY(N4ERR_RPC_DENIED        , 20013)  /* server denied RPC request */
    DEF_ENTRY(N4ERR_RPC_AUTH          , 20014)  /* RPC auth error */
    DEF_ENTRY(N4ERR_RPC_SYSTEM        , 20015)  /* RPC system error */
    DEF_ENTRY(N4ERR_CONN_CLOSED       , 20016)  /* remote host closed connection */
    DEF_ENTRY(N4ERR_UNSUPPORTED       , 20017)  /* unsupported */
    DEF_ENTRY(N4ERR_UNIMPLEMENTED     , 20018)  /* function unimplemented so far */
    DEF_ENTRY(N4ERR_SHORT_READ        , 20019)  /* connection dropped halfway through an atom */
END_TABLE(n4err)

