]> 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)
commit2237e3b6a3071986e167c7a2fd90fb192675f950
treecbe3f34a5758b920289b5383ff72e2108b9fa070
parente870b7b822fd4942d74d8bc81627ac2b222f4eaf
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