diff options
author | Peng Tao <tao.peng@primarydata.com> | 2015-09-26 02:24:36 +0800 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2015-10-15 16:08:04 -0400 |
commit | bea51b30b281039f0f43fb4f42028ddf33fb601f (patch) | |
tree | cbe3f34a5758b920289b5383ff72e2108b9fa070 /include/uapi/linux/nfs.h | |
parent | e5341f3a5762d17be9cdd06257c02c0098bdcab8 (diff) | |
download | linux-bea51b30b281039f0f43fb4f42028ddf33fb601f.tar.gz linux-bea51b30b281039f0f43fb4f42028ddf33fb601f.tar.bz2 linux-bea51b30b281039f0f43fb4f42028ddf33fb601f.zip |
nfs42: add NFS_IOC_CLONE ioctl
It can be called by user space to CLONE two files.
Follow btrfs lead and define NFS_IOC_CLONE same as BTRFS_IOC_CLONE.
Thus we don't mess up userspace with too many ioctls.
Signed-off-by: Peng Tao <tao.peng@primarydata.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'include/uapi/linux/nfs.h')
-rw-r--r-- | include/uapi/linux/nfs.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/uapi/linux/nfs.h b/include/uapi/linux/nfs.h index 5199a36dd574..d85748d3564d 100644 --- a/include/uapi/linux/nfs.h +++ b/include/uapi/linux/nfs.h @@ -31,6 +31,10 @@ #define NFS_PIPE_DIRNAME "nfs" +/* NFS ioctls */ +/* Let's follow btrfs lead on CLONE to avoid messing userspace */ +#define NFS_IOC_CLONE _IOW(0x94, 9, int) + /* * 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 |