/*1* fs/cifs/smberr.h2*3* Copyright (c) International Business Machines Corp., 2002,20044* Author(s): Steve French ([email protected])5*6* See Error Codes section of the SNIA CIFS Specification7* for more information8*9* This library is free software; you can redistribute it and/or modify10* it under the terms of the GNU Lesser General Public License as published11* by the Free Software Foundation; either version 2.1 of the License, or12* (at your option) any later version.13*14* This library is distributed in the hope that it will be useful,15* but WITHOUT ANY WARRANTY; without even the implied warranty of16* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See17* the GNU Lesser General Public License for more details.18*19* You should have received a copy of the GNU Lesser General Public License20* along with this library; if not, write to the Free Software21* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA22*/2324#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. */2930/* The following error codes may be generated with the SUCCESS error class.*/3132/*#define SUCCESS 0 The request was successful. */3334/* The following error codes may be generated with the ERRDOS error class.*/3536#define ERRbadfunc 1 /* Invalid function. The server did not37recognize or could not perform a38system call generated by the server,39e.g., set the DIRECTORY attribute on40a data file, invalid seek mode. */41#define ERRbadfile 2 /* File not found. The last component42of a file's pathname could not be43found. */44#define ERRbadpath 3 /* Directory invalid. A directory45component in a pathname could not be46found. */47#define ERRnofids 4 /* Too many open files. The server has48no file handles available. */49#define ERRnoaccess 5 /* Access denied, the client's context50does not permit the requested51function. This includes the52following conditions: invalid rename53command, write to Fid open for read54only, read on Fid open for write55only, attempt to delete a non-empty56directory */57#define ERRbadfid 6 /* Invalid file handle. The file handle58specified was not recognized by the59server. */60#define ERRbadmcb 7 /* Memory control blocks destroyed. */61#define ERRnomem 8 /* Insufficient server memory to62perform the requested function. */63#define ERRbadmem 9 /* Invalid memory block address. */64#define ERRbadenv 10 /* Invalid environment. */65#define ERRbadformat 11 /* Invalid format. */66#define ERRbadaccess 12 /* Invalid open mode. */67#define ERRbaddata 13 /* Invalid data (generated only by68IOCTL calls within the server). */69#define ERRbaddrive 15 /* Invalid drive specified. */70#define ERRremcd 16 /* A Delete Directory request attempted71to remove the server's current72directory. */73#define ERRdiffdevice 17 /* Not same device (e.g., a cross74volume rename was attempted */75#define ERRnofiles 18 /* A File Search command can find no76more files matching the specified77criteria. */78#define ERRwriteprot 19 /* media is write protected */79#define ERRgeneral 3180#define ERRbadshare 32 /* The sharing mode specified for an81Open conflicts with existing FIDs on82the file. */83#define ERRlock 33 /* A Lock request conflicted with an84existing lock or specified an85invalid mode, or an Unlock requested86attempted to remove a lock held by87another process. */88#define ERRunsup 5089#define ERRnosuchshare 6790#define ERRfilexists 80 /* The file named in the request91already exists. */92#define ERRinvparm 8793#define ERRdiskfull 11294#define ERRinvname 12395#define ERRinvlevel 12496#define ERRdirnotempty 14597#define ERRnotlocked 15898#define ERRcancelviolation 17399#define ERRalreadyexists 183100#define ERRbadpipe 230101#define ERRpipebusy 231102#define ERRpipeclosing 232103#define ERRnotconnected 233104#define ERRmoredata 234105#define ERReasnotsupported 282106#define ErrQuota 0x200 /* The operation would cause a quota107limit to be exceeded. */108#define ErrNotALink 0x201 /* A link operation was performed on a109pathname that was not a link. */110111/* Below errors are used internally (do not come over the wire) for passthrough112from STATUS codes to POSIX only */113#define ERRsymlink 0xFFFD114#define ErrTooManyLinks 0xFFFE115116/* Following error codes may be generated with the ERRSRV error class.*/117118#define ERRerror 1 /* Non-specific error code. It is119returned under the following120conditions: resource other than disk121space exhausted (e.g. TIDs), first122SMB command was not negotiate,123multiple negotiates attempted, and124internal server error. */125#define ERRbadpw 2 /* Bad password - name/password pair in126a TreeConnect or Session Setup are127invalid. */128#define ERRbadtype 3 /* used for indicating DFS referral129needed */130#define ERRaccess 4 /* The client does not have the131necessary access rights within the132specified context for requested133function. */134#define ERRinvtid 5 /* The Tid specified in a command was135invalid. */136#define ERRinvnetname 6 /* Invalid network name in tree137connect. */138#define ERRinvdevice 7 /* Invalid device - printer request139made to non-printer connection or140non-printer request made to printer141connection. */142#define ERRqfull 49 /* Print queue full (files) -- returned143by open print file. */144#define ERRqtoobig 50 /* Print queue full -- no space. */145#define ERRqeof 51 /* EOF on print queue dump */146#define ERRinvpfid 52 /* Invalid print file FID. */147#define ERRsmbcmd 64 /* The server did not recognize the148command received. */149#define ERRsrverror 65 /* The server encountered an internal150error, e.g., system file151unavailable. */152#define ERRbadBID 66 /* (obsolete) */153#define ERRfilespecs 67 /* The Fid and pathname parameters154contained an invalid combination of155values. */156#define ERRbadLink 68 /* (obsolete) */157#define ERRbadpermits 69 /* The access permissions specified for158a file or directory are not a valid159combination. */160#define ERRbadPID 70161#define ERRsetattrmode 71 /* attribute (mode) is invalid */162#define ERRpaused 81 /* Server is paused */163#define ERRmsgoff 82 /* reserved - messaging off */164#define ERRnoroom 83 /* reserved - no room for message */165#define ERRrmuns 87 /* reserved - too many remote names */166#define ERRtimeout 88 /* operation timed out */167#define ERRnoresource 89 /* No resources available for request168*/169#define ERRtoomanyuids 90 /* Too many UIDs active on this session170*/171#define ERRbaduid 91 /* The UID is not known as a valid user172*/173#define ERRusempx 250 /* temporarily unable to use raw */174#define ERRusestd 251 /* temporarily unable to use either raw175or mpx */176#define ERR_NOTIFY_ENUM_DIR 1024177#define ERRnoSuchUser 2238 /* user account does not exist */178#define ERRaccountexpired 2239179#define ERRbadclient 2240 /* can not logon from this client */180#define ERRbadLogonTime 2241 /* logon hours do not allow this */181#define ERRpasswordExpired 2242182#define ERRnetlogonNotStarted 2455183#define ERRnosupport 0xFFFF184185186