nfs-ganesha 1.4
|
00001 /* 00002 * 00003 * 00004 * Copyright CEA/DAM/DIF (2008) 00005 * contributeur : Philippe DENIEL philippe.deniel@cea.fr 00006 * Thomas LEIBOVICI thomas.leibovici@cea.fr 00007 * 00008 * 00009 * This program is free software; you can redistribute it and/or 00010 * modify it under the terms of the GNU Lesser General Public 00011 * License as published by the Free Software Foundation; either 00012 * version 3 of the License, or (at your option) any later version. 00013 * 00014 * This program is distributed in the hope that it will be useful, 00015 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00017 * Lesser General Public License for more details. 00018 * 00019 * You should have received a copy of the GNU Lesser General Public 00020 * License along with this library; if not, write to the Free Software 00021 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00022 * 00023 * --------------------------------------- 00024 */ 00025 00036 #ifndef _ERR_GHOSTFS_H 00037 #define _ERR_GHOSTFS_H 00038 00039 #include "log.h" 00040 00041 static family_error_t __attribute((__unused__)) tab_errstatus_GHOSTFS[] = 00042 { 00043 #define ERR_GHOSTFS_NO_ERROR 0 00044 { 00045 ERR_GHOSTFS_NO_ERROR, "ERR_GHOSTFS_NO_ERROR", "No error"}, 00046 #define ERR_GHOSTFS_NOENT 2 00047 { 00048 ERR_GHOSTFS_NOENT, "ERR_GHOSTFS_NOENT", "No such file or directory"}, 00049 #define ERR_GHOSTFS_NOTDIR 3 00050 { 00051 ERR_GHOSTFS_NOTDIR, "ERR_GHOSTFS_NOTDIR", "Not a directory"}, 00052 #define ERR_GHOSTFS_ACCES 13 00053 { 00054 ERR_GHOSTFS_ACCES, "ERR_GHOSTFS_ACCES", "Permission denied"}, 00055 #define ERR_GHOSTFS_EXIST 17 00056 { 00057 ERR_GHOSTFS_EXIST, "ERR_GHOSTFS_EXIST", "Entry already exist"}, 00058 #define ERR_GHOSTFS_ISDIR 21 00059 { 00060 ERR_GHOSTFS_ISDIR, "ERR_GHOSTFS_ISDIR", "Directory used in a non-directory operation"}, 00061 #define ERR_GHOSTFS_NOTEMPTY 23 00062 { 00063 ERR_GHOSTFS_NOTEMPTY, "ERR_GHOSTFS_NOTEMPTY", "Directory is not empty"}, 00064 #define ERR_GHOSTFS_INTERNAL 1001 00065 { 00066 ERR_GHOSTFS_INTERNAL, "ERR_GHOSTFS_INTERNAL", "GhostFS internal error"}, 00067 #define ERR_GHOSTFS_MALLOC 1002 00068 { 00069 ERR_GHOSTFS_MALLOC, "ERR_GHOSTFS_MALLOC", "Memory allocation error"}, 00070 #define ERR_GHOSTFS_OPEN 1003 00071 { 00072 ERR_GHOSTFS_OPEN, "ERR_GHOSTFS_OPEN", "Error opening fislesystem definition file"}, 00073 #define ERR_GHOSTFS_READ 1004 00074 { 00075 ERR_GHOSTFS_READ, "ERR_GHOSTFS_READ", "Error while reading filesytem definition file"}, 00076 #define ERR_GHOSTFS_WRITE 1005 00077 { 00078 ERR_GHOSTFS_WRITE, "ERR_GHOSTFS_WRITE", 00079 "Error while dumping filesytem definition file"}, 00080 #define ERR_GHOSTFS_SYNTAX 1006 00081 { 00082 ERR_GHOSTFS_SYNTAX, "ERR_GHOSTFS_SYNTAX", 00083 "Syntax error into filesytem definition file"}, 00084 #define ERR_GHOSTFS_ARGS 1007 00085 { 00086 ERR_GHOSTFS_ARGS, "ERR_GHOSTFS_ARGS", "Invalid argument"}, 00087 #define ERR_GHOSTFS_ALREADYINIT 1008 00088 { 00089 ERR_GHOSTFS_ALREADYINIT, "ERR_GHOSTFS_ALREADYINIT", 00090 "The filesystem has already been loaded"}, 00091 #define ERR_GHOSTFS_NOTINIT 1009 00092 { 00093 ERR_GHOSTFS_NOTINIT, "ERR_GHOSTFS_NOTINIT", "No filesystem has been loaded"}, 00094 #define ERR_GHOSTFS_STALE 1010 00095 { 00096 ERR_GHOSTFS_STALE, "ERR_GHOSTFS_STALE", "Invalid file handle"}, 00097 #define ERR_GHOSTFS_CORRUPT 1011 00098 { 00099 ERR_GHOSTFS_CORRUPT, "ERR_GHOSTFS_CORRUPT", "The filesystem seems to be corrupted"}, 00100 #define ERR_GHOSTFS_NOTLNK 1012 00101 { 00102 ERR_GHOSTFS_NOTLNK, "ERR_GHOSTFS_NOTLNK", "Not a link"}, 00103 #define ERR_GHOSTFS_TOOSMALL 1013 00104 { 00105 ERR_GHOSTFS_TOOSMALL, "ERR_GHOSTFS_TOOSMALL", "Buffer too small"}, 00106 #define ERR_GHOSTFS_NOTOPENED 1014 00107 { 00108 ERR_GHOSTFS_NOTOPENED, "ERR_GHOSTFS_NOTOPENED", "Directory is not opened"}, 00109 #define ERR_GHOSTFS_ENDOFDIR 1015 00110 { 00111 ERR_GHOSTFS_ENDOFDIR, "ERR_GHOSTFS_ENDOFDIR", "End of directory"}, 00112 #define ERR_GHOSTFS_ATTR_NOT_SUPP 1016 00113 { 00114 ERR_GHOSTFS_ATTR_NOT_SUPP, "ERR_GHOSTFS_ATTR_NOT_SUPP", 00115 "Unsupported or read-only attribute"}, 00116 { 00117 ERR_NULL, "ERR_NULL", ""} 00118 }; 00119 00120 #endif /*_ERR_GHOSTFS_H*/