linux/include/uapi/linux/nfs.h

/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
/*
 * NFS protocol definitions
 *
 * This file contains constants mostly for Version 2 of the protocol,
 * but also has a couple of NFSv3 bits in (notably the error codes).
 */
#ifndef _UAPI_LINUX_NFS_H
#define _UAPI_LINUX_NFS_H

#include <linux/types.h>

#define NFS_PROGRAM
#define NFS_PORT
#define NFS_RDMA_PORT
#define NFS_MAXDATA
#define NFS_MAXPATHLEN
#define NFS_MAXNAMLEN
#define NFS_MAXGROUPS
#define NFS_FHSIZE
#define NFS_COOKIESIZE
#define NFS_FIFO_DEV
#define NFSMODE_FMT
#define NFSMODE_DIR
#define NFSMODE_CHR
#define NFSMODE_BLK
#define NFSMODE_REG
#define NFSMODE_LNK
#define NFSMODE_SOCK
#define NFSMODE_FIFO

#define NFS_MNT_PROGRAM
#define NFS_MNT_VERSION
#define NFS_MNT3_VERSION

#define NFS_PIPE_DIRNAME

/*
 * NFS stats. The good thing with these values is that NFSv3 errors are
 * a superset of NFSv2 errors (with the exception of NFSERR_WFLUSH which
 * no-one uses anyway), so we can happily mix code as long as we make sure
 * no NFSv3 errors are returned to NFSv2 clients.
 * Error codes that have a `--' in the v2 column are not part of the
 * standard, but seem to be widely used nevertheless.
 */
 enum nfs_stat {};

/* NFSv2 file types - beware, these are not the same in NFSv3 */

enum nfs_ftype {};

#endif /* _UAPI_LINUX_NFS_H */