nfs-ganesha 1.4

err_fsal.h

Go to the documentation of this file.
00001 /*
00002  *
00003  * Copyright CEA/DAM/DIF  (2008)
00004  * contributeur : Philippe DENIEL   philippe.deniel@cea.fr
00005  *                Thomas LEIBOVICI  thomas.leibovici@cea.fr
00006  *
00007  *
00008  * This program is free software; you can redistribute it and/or
00009  * modify it under the terms of the GNU Lesser General Public
00010  * License as published by the Free Software Foundation; either
00011  * version 3 of the License, or (at your option) any later version.
00012  *
00013  * This program is distributed in the hope that it will be useful,
00014  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00016  * Lesser General Public License for more details.
00017  *
00018  * You should have received a copy of the GNU Lesser General Public
00019  * License along with this library; if not, write to the Free Software
00020  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
00021  *
00022  * ---------------------------------------
00023  */
00024 
00035 #ifndef _ERR_FSAL_H
00036 #define _ERR_FSAL_H
00037 
00038 #include "log.h"
00039 
00040 typedef enum fsal_errors_t
00041 {
00042   ERR_FSAL_NO_ERROR      = 0,
00043   ERR_FSAL_PERM          = 1,
00044   ERR_FSAL_NOENT         = 2,
00045   ERR_FSAL_IO            = 5,
00046   ERR_FSAL_NXIO          = 6,
00047   ERR_FSAL_NOMEM         = 12,
00048   ERR_FSAL_ACCESS        = 13,
00049   ERR_FSAL_FAULT         = 14,
00050   ERR_FSAL_EXIST         = 17,
00051   ERR_FSAL_XDEV          = 18,
00052   ERR_FSAL_NOTDIR        = 20,
00053   ERR_FSAL_ISDIR         = 21,
00054   ERR_FSAL_INVAL         = 22,
00055   ERR_FSAL_FBIG          = 27,
00056   ERR_FSAL_NOSPC         = 28,
00057   ERR_FSAL_ROFS          = 30,
00058   ERR_FSAL_MLINK         = 31,
00059   ERR_FSAL_DQUOT         = 49,
00060   ERR_FSAL_NAMETOOLONG   = 78,
00061   ERR_FSAL_NOTEMPTY      = 93,
00062   ERR_FSAL_STALE         = 151,
00063   ERR_FSAL_BADHANDLE     = 10001,
00064   ERR_FSAL_BADCOOKIE     = 10003,
00065   ERR_FSAL_NOTSUPP       = 10004,
00066   ERR_FSAL_TOOSMALL      = 10005,
00067   ERR_FSAL_SERVERFAULT   = 10006,
00068   ERR_FSAL_BADTYPE       = 10007,
00069   ERR_FSAL_DELAY         = 10008,
00070   ERR_FSAL_FHEXPIRED     = 10014,
00071   ERR_FSAL_SYMLINK       = 10029,
00072   ERR_FSAL_ATTRNOTSUPP   = 10032,
00073   ERR_FSAL_NOT_INIT      = 20001,
00074   ERR_FSAL_ALREADY_INIT  = 20002,
00075   ERR_FSAL_BAD_INIT      = 20003,
00076   ERR_FSAL_SEC           = 20004,
00077   ERR_FSAL_NO_QUOTA      = 20005,
00078   ERR_FSAL_NOT_OPENED    = 20010,
00079   ERR_FSAL_DEADLOCK      = 20011,
00080   ERR_FSAL_OVERFLOW      = 20012,
00081   ERR_FSAL_INTERRUPT     = 20013,
00082   ERR_FSAL_BLOCKED       = 20014,
00083   ERR_FSAL_TIMEOUT       = 20015,
00084   ERR_FSAL_FILE_OPEN     = 10046
00085 } fsal_errors_t;
00086 
00087 extern family_error_t __attribute__ ((__unused__)) tab_errstatus_FSAL[];
00088 
00089 const char * msg_fsal_err(fsal_errors_t fsal_err);
00090 const char * label_fsal_err(fsal_errors_t fsal_err);
00091 
00092 #endif /*_ERR_FSAL_H*/