![]() |
|
|||
0001 /* SPDX-License-Identifier: LGPL-2.1 */ 0002 /* 0003 * 0004 * Copyright (c) International Business Machines Corp., 2002,2004 0005 * Author(s): Steve French (sfrench@us.ibm.com) 0006 * 0007 * See Error Codes section of the SNIA CIFS Specification 0008 * for more information 0009 * 0010 */ 0011 0012 #define SUCCESS 0x00 /* The request was successful. */ 0013 #define ERRDOS 0x01 /* Error is from the core DOS operating system set */ 0014 #define ERRSRV 0x02 /* Error is generated by the file server daemon */ 0015 #define ERRHRD 0x03 /* Error is a hardware error. */ 0016 #define ERRCMD 0xFF /* Command was not in the "SMB" format. */ 0017 0018 /* The following error codes may be generated with the SUCCESS error class.*/ 0019 0020 /*#define SUCCESS 0 The request was successful. */ 0021 0022 /* The following error codes may be generated with the ERRDOS error class.*/ 0023 0024 #define ERRbadfunc 1 /* Invalid function. The server did not 0025 recognize or could not perform a 0026 system call generated by the server, 0027 e.g., set the DIRECTORY attribute on 0028 a data file, invalid seek mode. */ 0029 #define ERRbadfile 2 /* File not found. The last component 0030 of a file's pathname could not be 0031 found. */ 0032 #define ERRbadpath 3 /* Directory invalid. A directory 0033 component in a pathname could not be 0034 found. */ 0035 #define ERRnofids 4 /* Too many open files. The server has 0036 no file handles available. */ 0037 #define ERRnoaccess 5 /* Access denied, the client's context 0038 does not permit the requested 0039 function. This includes the 0040 following conditions: invalid rename 0041 command, write to Fid open for read 0042 only, read on Fid open for write 0043 only, attempt to delete a non-empty 0044 directory */ 0045 #define ERRbadfid 6 /* Invalid file handle. The file handle 0046 specified was not recognized by the 0047 server. */ 0048 #define ERRbadmcb 7 /* Memory control blocks destroyed. */ 0049 #define ERRnomem 8 /* Insufficient server memory to 0050 perform the requested function. */ 0051 #define ERRbadmem 9 /* Invalid memory block address. */ 0052 #define ERRbadenv 10 /* Invalid environment. */ 0053 #define ERRbadformat 11 /* Invalid format. */ 0054 #define ERRbadaccess 12 /* Invalid open mode. */ 0055 #define ERRbaddata 13 /* Invalid data (generated only by 0056 IOCTL calls within the server). */ 0057 #define ERRbaddrive 15 /* Invalid drive specified. */ 0058 #define ERRremcd 16 /* A Delete Directory request attempted 0059 to remove the server's current 0060 directory. */ 0061 #define ERRdiffdevice 17 /* Not same device (e.g., a cross 0062 volume rename was attempted */ 0063 #define ERRnofiles 18 /* A File Search command can find no 0064 more files matching the specified 0065 criteria. */ 0066 #define ERRwriteprot 19 /* media is write protected */ 0067 #define ERRgeneral 31 0068 #define ERRbadshare 32 /* The sharing mode specified for an 0069 Open conflicts with existing FIDs on 0070 the file. */ 0071 #define ERRlock 33 /* A Lock request conflicted with an 0072 existing lock or specified an 0073 invalid mode, or an Unlock requested 0074 attempted to remove a lock held by 0075 another process. */ 0076 #define ERRunsup 50 0077 #define ERRnosuchshare 67 0078 #define ERRfilexists 80 /* The file named in the request 0079 already exists. */ 0080 #define ERRinvparm 87 0081 #define ERRdiskfull 112 0082 #define ERRinvname 123 0083 #define ERRinvlevel 124 0084 #define ERRdirnotempty 145 0085 #define ERRnotlocked 158 0086 #define ERRcancelviolation 173 0087 #define ERRalreadyexists 183 0088 #define ERRbadpipe 230 0089 #define ERRpipebusy 231 0090 #define ERRpipeclosing 232 0091 #define ERRnotconnected 233 0092 #define ERRmoredata 234 0093 #define ERReasnotsupported 282 0094 #define ErrQuota 0x200 /* The operation would cause a quota 0095 limit to be exceeded. */ 0096 #define ErrNotALink 0x201 /* A link operation was performed on a 0097 pathname that was not a link. */ 0098 0099 /* Below errors are used internally (do not come over the wire) for passthrough 0100 from STATUS codes to POSIX only */ 0101 #define ERRsymlink 0xFFFD 0102 #define ErrTooManyLinks 0xFFFE 0103 0104 /* Following error codes may be generated with the ERRSRV error class.*/ 0105 0106 #define ERRerror 1 /* Non-specific error code. It is 0107 returned under the following 0108 conditions: resource other than disk 0109 space exhausted (e.g. TIDs), first 0110 SMB command was not negotiate, 0111 multiple negotiates attempted, and 0112 internal server error. */ 0113 #define ERRbadpw 2 /* Bad password - name/password pair in 0114 a TreeConnect or Session Setup are 0115 invalid. */ 0116 #define ERRbadtype 3 /* used for indicating DFS referral 0117 needed */ 0118 #define ERRaccess 4 /* The client does not have the 0119 necessary access rights within the 0120 specified context for requested 0121 function. */ 0122 #define ERRinvtid 5 /* The Tid specified in a command was 0123 invalid. */ 0124 #define ERRinvnetname 6 /* Invalid network name in tree 0125 connect. */ 0126 #define ERRinvdevice 7 /* Invalid device - printer request 0127 made to non-printer connection or 0128 non-printer request made to printer 0129 connection. */ 0130 #define ERRqfull 49 /* Print queue full (files) -- returned 0131 by open print file. */ 0132 #define ERRqtoobig 50 /* Print queue full -- no space. */ 0133 #define ERRqeof 51 /* EOF on print queue dump */ 0134 #define ERRinvpfid 52 /* Invalid print file FID. */ 0135 #define ERRsmbcmd 64 /* The server did not recognize the 0136 command received. */ 0137 #define ERRsrverror 65 /* The server encountered an internal 0138 error, e.g., system file 0139 unavailable. */ 0140 #define ERRbadBID 66 /* (obsolete) */ 0141 #define ERRfilespecs 67 /* The Fid and pathname parameters 0142 contained an invalid combination of 0143 values. */ 0144 #define ERRbadLink 68 /* (obsolete) */ 0145 #define ERRbadpermits 69 /* The access permissions specified for 0146 a file or directory are not a valid 0147 combination. */ 0148 #define ERRbadPID 70 0149 #define ERRsetattrmode 71 /* attribute (mode) is invalid */ 0150 #define ERRpaused 81 /* Server is paused */ 0151 #define ERRmsgoff 82 /* reserved - messaging off */ 0152 #define ERRnoroom 83 /* reserved - no room for message */ 0153 #define ERRrmuns 87 /* reserved - too many remote names */ 0154 #define ERRtimeout 88 /* operation timed out */ 0155 #define ERRnoresource 89 /* No resources available for request 0156 */ 0157 #define ERRtoomanyuids 90 /* Too many UIDs active on this session 0158 */ 0159 #define ERRbaduid 91 /* The UID is not known as a valid user 0160 */ 0161 #define ERRusempx 250 /* temporarily unable to use raw */ 0162 #define ERRusestd 251 /* temporarily unable to use either raw 0163 or mpx */ 0164 #define ERR_NOTIFY_ENUM_DIR 1024 0165 #define ERRnoSuchUser 2238 /* user account does not exist */ 0166 #define ERRaccountexpired 2239 0167 #define ERRbadclient 2240 /* can not logon from this client */ 0168 #define ERRbadLogonTime 2241 /* logon hours do not allow this */ 0169 #define ERRpasswordExpired 2242 0170 #define ERRnetlogonNotStarted 2455 0171 #define ERRnosupport 0xFFFF
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |