]> 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)
commitac4c6d48613cb9ce87db77dc595942e250baddc6
tree82be478b5d25808ea823bcee1efccbfbec05840b
parentb4d0930db64c37d2c2a66d6f7556c555a97c2d51
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