]> git.baikalelectronics.ru Git - kernel.git/commit
nfs42: add NFS_IOC_CLONE ioctl
authorPeng Tao <tao.peng@primarydata.com>
Fri, 25 Sep 2015 18:24:36 +0000 (02:24 +0800)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 15 Oct 2015 20:08:04 +0000 (16:08 -0400)
commit907d91fd4a60500fd3548973d5dd45595a61a825
treecbe3f34a5758b920289b5383ff72e2108b9fa070
parent3331e7b594e0738ebd509079a1545853c6a51016
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>
fs/nfs/nfs4file.c
include/uapi/linux/nfs.h