/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
* NFS protocol definitions
* This file contains constants for Version 2 of the protocol.
#define NFS2_MAXDATA 8192
#define NFS2_MAXPATHLEN 1024
#define NFS2_MAXNAMLEN 255
#define NFS2_MAXGROUPS 16
#define NFS2_COOKIESIZE 4
#define NFS2_FIFO_DEV (-1)
#define NFS2MODE_FMT 0170000
#define NFS2MODE_DIR 0040000
#define NFS2MODE_CHR 0020000
#define NFS2MODE_BLK 0060000
#define NFS2MODE_REG 0100000
#define NFS2MODE_LNK 0120000
#define NFS2MODE_SOCK 0140000
#define NFS2MODE_FIFO 0010000
/* NFSv2 file types - beware, these are not the same in NFSv3 */
* Procedure numbers for NFSv2
#define NFSPROC_GETATTR 1
#define NFSPROC_SETATTR 2
#define NFSPROC_READLINK 5
#define NFSPROC_WRITECACHE 7
#define NFSPROC_REMOVE 10
#define NFSPROC_RENAME 11
#define NFSPROC_SYMLINK 13
#define NFSPROC_READDIR 16
#define NFSPROC_STATFS 17
#endif /* _LINUX_NFS2_H */