smberr.h 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. /*
  2. * fs/cifs/smberr.h
  3. *
  4. * Copyright (c) International Business Machines Corp., 2002,2004
  5. * Author(s): Steve French (sfrench@us.ibm.com)
  6. *
  7. * See Error Codes section of the SNIA CIFS Specification
  8. * for more information
  9. *
  10. * This library is free software; you can redistribute it and/or modify
  11. * it under the terms of the GNU Lesser General Public License as published
  12. * by the Free Software Foundation; either version 2.1 of the License, or
  13. * (at your option) any later version.
  14. *
  15. * This library is distributed in the hope that it will be useful,
  16. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
  18. * the GNU Lesser General Public License for more details.
  19. *
  20. * You should have received a copy of the GNU Lesser General Public License
  21. * along with this library; if not, write to the Free Software
  22. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  23. */
  24. #define SUCCESS 0x00 /* The request was successful. */
  25. #define ERRDOS 0x01 /* Error is from the core DOS operating system set */
  26. #define ERRSRV 0x02 /* Error is generated by the file server daemon */
  27. #define ERRHRD 0x03 /* Error is a hardware error. */
  28. #define ERRCMD 0xFF /* Command was not in the "SMB" format. */
  29. /* The following error codes may be generated with the SUCCESS error class.*/
  30. /*#define SUCCESS 0 The request was successful. */
  31. /* The following error codes may be generated with the ERRDOS error class.*/
  32. #define ERRbadfunc 1 /* Invalid function. The server did not
  33. recognize or could not perform a
  34. system call generated by the server,
  35. e.g., set the DIRECTORY attribute on
  36. a data file, invalid seek mode. */
  37. #define ERRbadfile 2 /* File not found. The last component
  38. of a file's pathname could not be
  39. found. */
  40. #define ERRbadpath 3 /* Directory invalid. A directory
  41. component in a pathname could not be
  42. found. */
  43. #define ERRnofids 4 /* Too many open files. The server has
  44. no file handles available. */
  45. #define ERRnoaccess 5 /* Access denied, the client's context
  46. does not permit the requested
  47. function. This includes the
  48. following conditions: invalid rename
  49. command, write to Fid open for read
  50. only, read on Fid open for write
  51. only, attempt to delete a non-empty
  52. directory */
  53. #define ERRbadfid 6 /* Invalid file handle. The file handle
  54. specified was not recognized by the
  55. server. */
  56. #define ERRbadmcb 7 /* Memory control blocks destroyed. */
  57. #define ERRnomem 8 /* Insufficient server memory to
  58. perform the requested function. */
  59. #define ERRbadmem 9 /* Invalid memory block address. */
  60. #define ERRbadenv 10 /* Invalid environment. */
  61. #define ERRbadformat 11 /* Invalid format. */
  62. #define ERRbadaccess 12 /* Invalid open mode. */
  63. #define ERRbaddata 13 /* Invalid data (generated only by
  64. IOCTL calls within the server). */
  65. #define ERRbaddrive 15 /* Invalid drive specified. */
  66. #define ERRremcd 16 /* A Delete Directory request attempted
  67. to remove the server's current
  68. directory. */
  69. #define ERRdiffdevice 17 /* Not same device (e.g., a cross
  70. volume rename was attempted */
  71. #define ERRnofiles 18 /* A File Search command can find no
  72. more files matching the specified
  73. criteria. */
  74. #define ERRwriteprot 19 /* media is write protected */
  75. #define ERRgeneral 31
  76. #define ERRbadshare 32 /* The sharing mode specified for an
  77. Open conflicts with existing FIDs on
  78. the file. */
  79. #define ERRlock 33 /* A Lock request conflicted with an
  80. existing lock or specified an
  81. invalid mode, or an Unlock requested
  82. attempted to remove a lock held by
  83. another process. */
  84. #define ERRunsup 50
  85. #define ERRnosuchshare 67
  86. #define ERRfilexists 80 /* The file named in the request
  87. already exists. */
  88. #define ERRinvparm 87
  89. #define ERRdiskfull 112
  90. #define ERRinvname 123
  91. #define ERRinvlevel 124
  92. #define ERRdirnotempty 145
  93. #define ERRnotlocked 158
  94. #define ERRcancelviolation 173
  95. #define ERRalreadyexists 183
  96. #define ERRbadpipe 230
  97. #define ERRpipebusy 231
  98. #define ERRpipeclosing 232
  99. #define ERRnotconnected 233
  100. #define ERRmoredata 234
  101. #define ERReasnotsupported 282
  102. #define ErrQuota 0x200 /* The operation would cause a quota
  103. limit to be exceeded. */
  104. #define ErrNotALink 0x201 /* A link operation was performed on a
  105. pathname that was not a link. */
  106. /* Below errors are used internally (do not come over the wire) for passthrough
  107. from STATUS codes to POSIX only */
  108. #define ERRsymlink 0xFFFD
  109. #define ErrTooManyLinks 0xFFFE
  110. /* Following error codes may be generated with the ERRSRV error class.*/
  111. #define ERRerror 1 /* Non-specific error code. It is
  112. returned under the following
  113. conditions: resource other than disk
  114. space exhausted (e.g. TIDs), first
  115. SMB command was not negotiate,
  116. multiple negotiates attempted, and
  117. internal server error. */
  118. #define ERRbadpw 2 /* Bad password - name/password pair in
  119. a TreeConnect or Session Setup are
  120. invalid. */
  121. #define ERRbadtype 3 /* used for indicating DFS referral
  122. needed */
  123. #define ERRaccess 4 /* The client does not have the
  124. necessary access rights within the
  125. specified context for requested
  126. function. */
  127. #define ERRinvtid 5 /* The Tid specified in a command was
  128. invalid. */
  129. #define ERRinvnetname 6 /* Invalid network name in tree
  130. connect. */
  131. #define ERRinvdevice 7 /* Invalid device - printer request
  132. made to non-printer connection or
  133. non-printer request made to printer
  134. connection. */
  135. #define ERRqfull 49 /* Print queue full (files) -- returned
  136. by open print file. */
  137. #define ERRqtoobig 50 /* Print queue full -- no space. */
  138. #define ERRqeof 51 /* EOF on print queue dump */
  139. #define ERRinvpfid 52 /* Invalid print file FID. */
  140. #define ERRsmbcmd 64 /* The server did not recognize the
  141. command received. */
  142. #define ERRsrverror 65 /* The server encountered an internal
  143. error, e.g., system file
  144. unavailable. */
  145. #define ERRbadBID 66 /* (obsolete) */
  146. #define ERRfilespecs 67 /* The Fid and pathname parameters
  147. contained an invalid combination of
  148. values. */
  149. #define ERRbadLink 68 /* (obsolete) */
  150. #define ERRbadpermits 69 /* The access permissions specified for
  151. a file or directory are not a valid
  152. combination. */
  153. #define ERRbadPID 70
  154. #define ERRsetattrmode 71 /* attribute (mode) is invalid */
  155. #define ERRpaused 81 /* Server is paused */
  156. #define ERRmsgoff 82 /* reserved - messaging off */
  157. #define ERRnoroom 83 /* reserved - no room for message */
  158. #define ERRrmuns 87 /* reserved - too many remote names */
  159. #define ERRtimeout 88 /* operation timed out */
  160. #define ERRnoresource 89 /* No resources available for request
  161. */
  162. #define ERRtoomanyuids 90 /* Too many UIDs active on this session
  163. */
  164. #define ERRbaduid 91 /* The UID is not known as a valid user
  165. */
  166. #define ERRusempx 250 /* temporarily unable to use raw */
  167. #define ERRusestd 251 /* temporarily unable to use either raw
  168. or mpx */
  169. #define ERR_NOTIFY_ENUM_DIR 1024
  170. #define ERRnoSuchUser 2238 /* user account does not exist */
  171. #define ERRaccountexpired 2239
  172. #define ERRbadclient 2240 /* can not logon from this client */
  173. #define ERRbadLogonTime 2241 /* logon hours do not allow this */
  174. #define ERRpasswordExpired 2242
  175. #define ERRnetlogonNotStarted 2455
  176. #define ERRnosupport 0xFFFF