]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2deebc16dab958bd5467c26295afc34b24e2230a
tree791ffd4dc32bdb8841339a15d9a197abd7b77c4c
parent84da1a64aa0da76c0935b3a1378d9aea7ddfd37a
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