aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/nfs.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/uapi/linux/nfs.h')
-rw-r--r--include/uapi/linux/nfs.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/uapi/linux/nfs.h b/include/uapi/linux/nfs.h
index 5199a36dd574..654bae3f1a38 100644
--- a/include/uapi/linux/nfs.h
+++ b/include/uapi/linux/nfs.h
@@ -7,6 +7,8 @@
7#ifndef _UAPI_LINUX_NFS_H 7#ifndef _UAPI_LINUX_NFS_H
8#define _UAPI_LINUX_NFS_H 8#define _UAPI_LINUX_NFS_H
9 9
10#include <linux/types.h>
11
10#define NFS_PROGRAM 100003 12#define NFS_PROGRAM 100003
11#define NFS_PORT 2049 13#define NFS_PORT 2049
12#define NFS_MAXDATA 8192 14#define NFS_MAXDATA 8192
@@ -31,6 +33,17 @@
31 33
32#define NFS_PIPE_DIRNAME "nfs" 34#define NFS_PIPE_DIRNAME "nfs"
33 35
36/* NFS ioctls */
37/* Let's follow btrfs lead on CLONE to avoid messing userspace */
38#define NFS_IOC_CLONE _IOW(0x94, 9, int)
39#define NFS_IOC_CLONE_RANGE _IOW(0x94, 13, int)
40
41struct nfs_ioctl_clone_range_args {
42 __s64 src_fd;
43 __u64 src_off, count;
44 __u64 dst_off;
45};
46
34/* 47/*
35 * NFS stats. The good thing with these values is that NFSv3 errors are 48 * NFS stats. The good thing with these values is that NFSv3 errors are
36 * a superset of NFSv2 errors (with the exception of NFSERR_WFLUSH which 49 * a superset of NFSv2 errors (with the exception of NFSERR_WFLUSH which