]> git.baikalelectronics.ru Git - kernel.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)
commitd35b478843cb01d5f3a093d6a0af10af5fd8842b
tree82be478b5d25808ea823bcee1efccbfbec05840b
parentb55c228fbf914068c027f07c6e6d742c7b4e1118
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