summaryrefslogtreecommitdiffstats
path: root/include/uapi
diff options
context:
space:
mode:
authorPeng Tao2015-09-25 20:24:36 +0200
committerTrond Myklebust2015-10-15 22:08:04 +0200
commitbea51b30b281039f0f43fb4f42028ddf33fb601f (patch)
treecbe3f34a5758b920289b5383ff72e2108b9fa070 /include/uapi
parentnfs42: add CLONE proc functions (diff)
downloadkernel-qcow2-linux-bea51b30b281039f0f43fb4f42028ddf33fb601f.tar.gz
kernel-qcow2-linux-bea51b30b281039f0f43fb4f42028ddf33fb601f.tar.xz
kernel-qcow2-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')
-rw-r--r--include/uapi/linux/nfs.h4
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