brintos

brintos / linux-shallow public Read only

0
0
Text · 6.8 KiB · aeffdad Raw
172 lines · c
1/* SPDX-License-Identifier: LGPL-2.1 */2/*3 *4 *   Copyright (c) International Business Machines  Corp., 2002,20045 *   Author(s): Steve French (sfrench@us.ibm.com)6 *7 *   See Error Codes section of the SNIA CIFS Specification8 *   for more information9 *10 */11 12#define SUCCESS	0x00	/* The request was successful. */13#define ERRDOS	0x01	/* Error is from the core DOS operating system set */14#define ERRSRV	0x02	/* Error is generated by the file server daemon */15#define ERRHRD	0x03	/* Error is a hardware error. */16#define ERRCMD	0xFF	/* Command was not in the "SMB" format. */17 18/* The following error codes may be generated with the SUCCESS error class.*/19 20/*#define SUCCESS	0	The request was successful. */21 22/* The following error codes may be generated with the ERRDOS error class.*/23 24#define ERRbadfunc		1	/* Invalid function. The server did not25					   recognize or could not perform a26					   system call generated by the server,27					   e.g., set the DIRECTORY attribute on28					   a data file, invalid seek mode. */29#define ERRbadfile		2	/* File not found. The last component30					   of a file's pathname could not be31					   found. */32#define ERRbadpath		3	/* Directory invalid. A directory33					   component in a pathname could not be34					   found. */35#define ERRnofids		4	/* Too many open files. The server has36					   no file handles available. */37#define ERRnoaccess		5	/* Access denied, the client's context38					   does not permit the requested39					   function. This includes the40					   following conditions: invalid rename41					   command, write to Fid open for read42					   only, read on Fid open for write43					   only, attempt to delete a non-empty44					   directory */45#define ERRbadfid		6	/* Invalid file handle. The file handle46					   specified was not recognized by the47					   server. */48#define ERRbadmcb		7	/* Memory control blocks destroyed. */49#define ERRnomem		8	/* Insufficient server memory to50					   perform the requested function. */51#define ERRbadmem		9	/* Invalid memory block address. */52#define ERRbadenv		10	/* Invalid environment. */53#define ERRbadformat		11	/* Invalid format. */54#define ERRbadaccess		12	/* Invalid open mode. */55#define ERRbaddata		13	/* Invalid data (generated only by56					   IOCTL calls within the server). */57#define ERRbaddrive		15	/* Invalid drive specified. */58#define ERRremcd		16	/* A Delete Directory request attempted59					   to remove the server's current60					   directory. */61#define ERRdiffdevice		17	/* Not same device (e.g., a cross62					   volume rename was attempted */63#define ERRnofiles		18	/* A File Search command can find no64					   more files matching the specified65					   criteria. */66#define ERRwriteprot		19	/* media is write protected */67#define ERRgeneral		3168#define ERRbadshare		32	/* The sharing mode specified for an69					   Open conflicts with existing FIDs on70					   the file. */71#define ERRlock			33	/* A Lock request conflicted with an72					   existing lock or specified an73					   invalid mode, or an Unlock requested74					   attempted to remove a lock held by75					   another process. */76#define ERRunsup		5077#define ERRnosuchshare		6778#define ERRfilexists		80	/* The file named in the request79					   already exists. */80#define ERRinvparm		8781#define ERRdiskfull		11282#define ERRinvname		12383#define ERRinvlevel		12484#define ERRdirnotempty		14585#define ERRnotlocked		15886#define ERRcancelviolation	17387#define ERRalreadyexists	18388#define ERRbadpipe		23089#define ERRpipebusy		23190#define ERRpipeclosing		23291#define ERRnotconnected		23392#define ERRmoredata		23493#define ERReasnotsupported	28294#define ErrQuota		0x200	/* The operation would cause a quota95					   limit to be exceeded. */96#define ErrNotALink		0x201	/* A link operation was performed on a97					   pathname that was not a link. */98 99/* Below errors are used internally (do not come over the wire) for passthrough100   from STATUS codes to POSIX only  */101#define ERRsymlink              0xFFFD102#define ErrTooManyLinks         0xFFFE103 104/* Following error codes may be generated with the ERRSRV error class.*/105 106#define ERRerror		1	/* Non-specific error code. It is107					   returned under the following108					   conditions: resource other than disk109					   space exhausted (e.g. TIDs), first110					   SMB command was not negotiate,111					   multiple negotiates attempted, and112					   internal server error. */113#define ERRbadpw		2	/* Bad password - name/password pair in114					   a TreeConnect or Session Setup are115					   invalid. */116#define ERRbadtype		3	/* used for indicating DFS referral117					   needed */118#define ERRaccess		4	/* The client does not have the119					   necessary access rights within the120					   specified context for requested121					   function. */122#define ERRinvtid		5	/* The Tid specified in a command was123					   invalid. */124#define ERRinvnetname		6	/* Invalid network name in tree125					   connect. */126#define ERRinvdevice		7	/* Invalid device - printer request127					   made to non-printer connection or128					   non-printer request made to printer129					   connection. */130#define ERRqfull		49	/* Print queue full (files) -- returned131					   by open print file. */132#define ERRqtoobig		50	/* Print queue full -- no space. */133#define ERRqeof			51	/* EOF on print queue dump */134#define ERRinvpfid		52	/* Invalid print file FID. */135#define ERRsmbcmd		64	/* The server did not recognize the136					   command received. */137#define ERRsrverror		65	/* The server encountered an internal138					   error, e.g., system file139					   unavailable. */140#define ERRbadBID		66	/* (obsolete) */141#define ERRfilespecs		67	/* The Fid and pathname parameters142					   contained an invalid combination of143					   values. */144#define ERRbadLink		68	/* (obsolete) */145#define ERRbadpermits		69	/* The access permissions specified for146					   a file or directory are not a valid147					   combination. */148#define ERRbadPID		70149#define ERRsetattrmode		71	/* attribute (mode) is invalid */150#define ERRpaused		81	/* Server is paused */151#define ERRmsgoff		82	/* reserved - messaging off */152#define ERRnoroom		83	/* reserved - no room for message */153#define ERRrmuns		87	/* reserved - too many remote names */154#define ERRtimeout		88	/* operation timed out */155#define ERRnoresource		89	/* No resources available for request156					   */157#define ERRtoomanyuids		90	/* Too many UIDs active on this session158					   */159#define ERRbaduid		91	/* The UID is not known as a valid user160					   */161#define ERRusempx		250	/* temporarily unable to use raw */162#define ERRusestd		251	/* temporarily unable to use either raw163					   or mpx */164#define ERR_NOTIFY_ENUM_DIR	1024165#define ERRnoSuchUser		2238	/* user account does not exist */166#define ERRaccountexpired	2239167#define ERRbadclient		2240	/* can not logon from this client */168#define ERRbadLogonTime		2241	/* logon hours do not allow this */169#define ERRpasswordExpired	2242170#define ERRnetlogonNotStarted	2455171#define ERRnosupport		0xFFFF172