]> rtime.felk.cvut.cz Git - linux-imx.git/commit
btrfs: allow cross-subvolume file clone
authorDavid Sterba <dsterba@suse.cz>
Mon, 1 Aug 2011 16:11:57 +0000 (18:11 +0200)
committerAlexander Block <ablock84@googlemail.com>
Wed, 25 Jul 2012 15:33:09 +0000 (17:33 +0200)
commit362a20c5e27614739c46707d1c5f55c214d164ce
tree82be478b5d25808ea823bcee1efccbfbec05840b
parent28a33cbc24e4256c143dce96c7d93bf423229f92
btrfs: allow cross-subvolume file clone

Lift the EXDEV condition and allow different root trees for files being
cloned, then pass source inode's root when searching for extents.
Cloning is not allowed to cross vfsmounts, ie. when two subvolumes from
one filesystem are mounted separately.

Signed-off-by: David Sterba <dsterba@suse.cz>
fs/btrfs/ioctl.c