summaryrefslogtreecommitdiffstats
path: root/include/uapi
diff options
context:
space:
mode:
authorPeng Tao <tao.peng@primarydata.com>2015-09-25 20:24:39 +0200
committerTrond Myklebust <trond.myklebust@primarydata.com>2015-10-15 22:08:33 +0200
commita340abcf4173461f688292a6879b4d5bc781c2b1 (patch)
tree30dc469f9535e3bd5c1882119212f1c06036cef8 /include/uapi
parentnfs42: respect clone_blksize (diff)
downloadlinux-a340abcf4173461f688292a6879b4d5bc781c2b1.tar.xz
linux-a340abcf4173461f688292a6879b4d5bc781c2b1.zip
nfs42: add NFS_IOC_CLONE_RANGE ioctl
It follows btrfs BTRFS_IOC_CLONE_RANGE lead on ioctl number and arguments. 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.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/uapi/linux/nfs.h b/include/uapi/linux/nfs.h
index d85748d3564d..c6b86cc404f8 100644
--- a/include/uapi/linux/nfs.h
+++ b/include/uapi/linux/nfs.h
@@ -33,7 +33,14 @@
/* NFS ioctls */
/* Let's follow btrfs lead on CLONE to avoid messing userspace */
-#define NFS_IOC_CLONE _IOW(0x94, 9, int)
+#define NFS_IOC_CLONE _IOW(0x94, 9, int)
+#define NFS_IOC_CLONE_RANGE _IOW(0x94, 13, int)
+
+struct nfs_ioctl_clone_range_args {
+ __s64 src_fd;
+ __u64 src_off, count;
+ __u64 dst_off;
+};
/*
* NFS stats. The good thing with these values is that NFSv3 errors are