]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - fs/nfs/nfs4file.c
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)
commitbea51b30b281039f0f43fb4f42028ddf33fb601f
treecbe3f34a5758b920289b5383ff72e2108b9fa070
parente5341f3a5762d17be9cdd06257c02c0098bdcab8
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