OSDN Git Service

xfs: add clone file and clone range vfs functions
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 3 Oct 2016 16:11:40 +0000 (09:11 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 5 Oct 2016 23:26:25 +0000 (16:26 -0700)
commit9fe26045e98f8787999f6aa45aec35d16565c1bd
tree791ffd4dc32bdb8841339a15d9a197abd7b77c4c
parent862bb360ef569f625bcf700ae4b162a9c8fa9bba
xfs: add clone file and clone range vfs functions

Define two VFS functions which allow userspace to reflink a range of
blocks between two files or to reflink one file's contents to another.
These functions fit the new VFS ioctls that standardize the checking
for the btrfs CLONE and CLONE RANGE ioctls.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/xfs_file.c