smberr.h 6.8 KB

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