Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../usr/include/linux
File: nfs.h
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
[0] Fix | Delete
/*
[1] Fix | Delete
* NFS protocol definitions
[2] Fix | Delete
*
[3] Fix | Delete
* This file contains constants mostly for Version 2 of the protocol,
[4] Fix | Delete
* but also has a couple of NFSv3 bits in (notably the error codes).
[5] Fix | Delete
*/
[6] Fix | Delete
#ifndef _LINUX_NFS_H
[7] Fix | Delete
#define _LINUX_NFS_H
[8] Fix | Delete
[9] Fix | Delete
#include <linux/types.h>
[10] Fix | Delete
[11] Fix | Delete
#define NFS_PROGRAM 100003
[12] Fix | Delete
#define NFS_PORT 2049
[13] Fix | Delete
#define NFS_RDMA_PORT 20049
[14] Fix | Delete
#define NFS_MAXDATA 8192
[15] Fix | Delete
#define NFS_MAXPATHLEN 1024
[16] Fix | Delete
#define NFS_MAXNAMLEN 255
[17] Fix | Delete
#define NFS_MAXGROUPS 16
[18] Fix | Delete
#define NFS_FHSIZE 32
[19] Fix | Delete
#define NFS_COOKIESIZE 4
[20] Fix | Delete
#define NFS_FIFO_DEV (-1)
[21] Fix | Delete
#define NFSMODE_FMT 0170000
[22] Fix | Delete
#define NFSMODE_DIR 0040000
[23] Fix | Delete
#define NFSMODE_CHR 0020000
[24] Fix | Delete
#define NFSMODE_BLK 0060000
[25] Fix | Delete
#define NFSMODE_REG 0100000
[26] Fix | Delete
#define NFSMODE_LNK 0120000
[27] Fix | Delete
#define NFSMODE_SOCK 0140000
[28] Fix | Delete
#define NFSMODE_FIFO 0010000
[29] Fix | Delete
[30] Fix | Delete
#define NFS_MNT_PROGRAM 100005
[31] Fix | Delete
#define NFS_MNT_VERSION 1
[32] Fix | Delete
#define NFS_MNT3_VERSION 3
[33] Fix | Delete
[34] Fix | Delete
#define NFS_PIPE_DIRNAME "nfs"
[35] Fix | Delete
[36] Fix | Delete
/*
[37] Fix | Delete
* NFS stats. The good thing with these values is that NFSv3 errors are
[38] Fix | Delete
* a superset of NFSv2 errors (with the exception of NFSERR_WFLUSH which
[39] Fix | Delete
* no-one uses anyway), so we can happily mix code as long as we make sure
[40] Fix | Delete
* no NFSv3 errors are returned to NFSv2 clients.
[41] Fix | Delete
* Error codes that have a `--' in the v2 column are not part of the
[42] Fix | Delete
* standard, but seem to be widely used nevertheless.
[43] Fix | Delete
*/
[44] Fix | Delete
enum nfs_stat {
[45] Fix | Delete
NFS_OK = 0, /* v2 v3 v4 */
[46] Fix | Delete
NFSERR_PERM = 1, /* v2 v3 v4 */
[47] Fix | Delete
NFSERR_NOENT = 2, /* v2 v3 v4 */
[48] Fix | Delete
NFSERR_IO = 5, /* v2 v3 v4 */
[49] Fix | Delete
NFSERR_NXIO = 6, /* v2 v3 v4 */
[50] Fix | Delete
NFSERR_EAGAIN = 11, /* v2 v3 */
[51] Fix | Delete
NFSERR_ACCES = 13, /* v2 v3 v4 */
[52] Fix | Delete
NFSERR_EXIST = 17, /* v2 v3 v4 */
[53] Fix | Delete
NFSERR_XDEV = 18, /* v3 v4 */
[54] Fix | Delete
NFSERR_NODEV = 19, /* v2 v3 v4 */
[55] Fix | Delete
NFSERR_NOTDIR = 20, /* v2 v3 v4 */
[56] Fix | Delete
NFSERR_ISDIR = 21, /* v2 v3 v4 */
[57] Fix | Delete
NFSERR_INVAL = 22, /* v2 v3 v4 */
[58] Fix | Delete
NFSERR_FBIG = 27, /* v2 v3 v4 */
[59] Fix | Delete
NFSERR_NOSPC = 28, /* v2 v3 v4 */
[60] Fix | Delete
NFSERR_ROFS = 30, /* v2 v3 v4 */
[61] Fix | Delete
NFSERR_MLINK = 31, /* v3 v4 */
[62] Fix | Delete
NFSERR_OPNOTSUPP = 45, /* v2 v3 */
[63] Fix | Delete
NFSERR_NAMETOOLONG = 63, /* v2 v3 v4 */
[64] Fix | Delete
NFSERR_NOTEMPTY = 66, /* v2 v3 v4 */
[65] Fix | Delete
NFSERR_DQUOT = 69, /* v2 v3 v4 */
[66] Fix | Delete
NFSERR_STALE = 70, /* v2 v3 v4 */
[67] Fix | Delete
NFSERR_REMOTE = 71, /* v2 v3 */
[68] Fix | Delete
NFSERR_WFLUSH = 99, /* v2 */
[69] Fix | Delete
NFSERR_BADHANDLE = 10001, /* v3 v4 */
[70] Fix | Delete
NFSERR_NOT_SYNC = 10002, /* v3 */
[71] Fix | Delete
NFSERR_BAD_COOKIE = 10003, /* v3 v4 */
[72] Fix | Delete
NFSERR_NOTSUPP = 10004, /* v3 v4 */
[73] Fix | Delete
NFSERR_TOOSMALL = 10005, /* v3 v4 */
[74] Fix | Delete
NFSERR_SERVERFAULT = 10006, /* v3 v4 */
[75] Fix | Delete
NFSERR_BADTYPE = 10007, /* v3 v4 */
[76] Fix | Delete
NFSERR_JUKEBOX = 10008, /* v3 v4 */
[77] Fix | Delete
NFSERR_SAME = 10009, /* v4 */
[78] Fix | Delete
NFSERR_DENIED = 10010, /* v4 */
[79] Fix | Delete
NFSERR_EXPIRED = 10011, /* v4 */
[80] Fix | Delete
NFSERR_LOCKED = 10012, /* v4 */
[81] Fix | Delete
NFSERR_GRACE = 10013, /* v4 */
[82] Fix | Delete
NFSERR_FHEXPIRED = 10014, /* v4 */
[83] Fix | Delete
NFSERR_SHARE_DENIED = 10015, /* v4 */
[84] Fix | Delete
NFSERR_WRONGSEC = 10016, /* v4 */
[85] Fix | Delete
NFSERR_CLID_INUSE = 10017, /* v4 */
[86] Fix | Delete
NFSERR_RESOURCE = 10018, /* v4 */
[87] Fix | Delete
NFSERR_MOVED = 10019, /* v4 */
[88] Fix | Delete
NFSERR_NOFILEHANDLE = 10020, /* v4 */
[89] Fix | Delete
NFSERR_MINOR_VERS_MISMATCH = 10021, /* v4 */
[90] Fix | Delete
NFSERR_STALE_CLIENTID = 10022, /* v4 */
[91] Fix | Delete
NFSERR_STALE_STATEID = 10023, /* v4 */
[92] Fix | Delete
NFSERR_OLD_STATEID = 10024, /* v4 */
[93] Fix | Delete
NFSERR_BAD_STATEID = 10025, /* v4 */
[94] Fix | Delete
NFSERR_BAD_SEQID = 10026, /* v4 */
[95] Fix | Delete
NFSERR_NOT_SAME = 10027, /* v4 */
[96] Fix | Delete
NFSERR_LOCK_RANGE = 10028, /* v4 */
[97] Fix | Delete
NFSERR_SYMLINK = 10029, /* v4 */
[98] Fix | Delete
NFSERR_RESTOREFH = 10030, /* v4 */
[99] Fix | Delete
NFSERR_LEASE_MOVED = 10031, /* v4 */
[100] Fix | Delete
NFSERR_ATTRNOTSUPP = 10032, /* v4 */
[101] Fix | Delete
NFSERR_NO_GRACE = 10033, /* v4 */
[102] Fix | Delete
NFSERR_RECLAIM_BAD = 10034, /* v4 */
[103] Fix | Delete
NFSERR_RECLAIM_CONFLICT = 10035,/* v4 */
[104] Fix | Delete
NFSERR_BAD_XDR = 10036, /* v4 */
[105] Fix | Delete
NFSERR_LOCKS_HELD = 10037, /* v4 */
[106] Fix | Delete
NFSERR_OPENMODE = 10038, /* v4 */
[107] Fix | Delete
NFSERR_BADOWNER = 10039, /* v4 */
[108] Fix | Delete
NFSERR_BADCHAR = 10040, /* v4 */
[109] Fix | Delete
NFSERR_BADNAME = 10041, /* v4 */
[110] Fix | Delete
NFSERR_BAD_RANGE = 10042, /* v4 */
[111] Fix | Delete
NFSERR_LOCK_NOTSUPP = 10043, /* v4 */
[112] Fix | Delete
NFSERR_OP_ILLEGAL = 10044, /* v4 */
[113] Fix | Delete
NFSERR_DEADLOCK = 10045, /* v4 */
[114] Fix | Delete
NFSERR_FILE_OPEN = 10046, /* v4 */
[115] Fix | Delete
NFSERR_ADMIN_REVOKED = 10047, /* v4 */
[116] Fix | Delete
NFSERR_CB_PATH_DOWN = 10048, /* v4 */
[117] Fix | Delete
};
[118] Fix | Delete
[119] Fix | Delete
/* NFSv2 file types - beware, these are not the same in NFSv3 */
[120] Fix | Delete
[121] Fix | Delete
enum nfs_ftype {
[122] Fix | Delete
NFNON = 0,
[123] Fix | Delete
NFREG = 1,
[124] Fix | Delete
NFDIR = 2,
[125] Fix | Delete
NFBLK = 3,
[126] Fix | Delete
NFCHR = 4,
[127] Fix | Delete
NFLNK = 5,
[128] Fix | Delete
NFSOCK = 6,
[129] Fix | Delete
NFBAD = 7,
[130] Fix | Delete
NFFIFO = 8
[131] Fix | Delete
};
[132] Fix | Delete
[133] Fix | Delete
#endif /* _LINUX_NFS_H */
[134] Fix | Delete
[135] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function