[PATCH] btrfs: allow cross-subvolume file clone

2012-06-20 Thread Alexander Block
From: David Sterba dste...@suse.cz 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.

Re: [RFC, crash][PATCH] btrfs: allow cross-subvolume file clone

2011-08-11 Thread Dan Merillat
On Tue, Aug 9, 2011 at 1:50 PM, David Sterba d...@jikos.cz wrote: On Thu, Aug 04, 2011 at 09:19:26AM +0800, Miao Xie wrote: the patch has been applied on top of current linus which contains patches from both pull requests (ed8f37370d83). I think it is because the caller didn't reserve

Re: [RFC, crash][PATCH] btrfs: allow cross-subvolume file clone

2011-08-09 Thread David Sterba
On Thu, Aug 04, 2011 at 09:19:26AM +0800, Miao Xie wrote: the patch has been applied on top of current linus which contains patches from both pull requests (ed8f37370d83). I think it is because the caller didn't reserve enough space.Could you try to apply the following patch? It might

[RFC, crash][PATCH] btrfs: allow cross-subvolume file clone

2011-08-03 Thread David Sterba
Hi, I'm working on a patch to fix cross-volume cloning, worked for simple cases like cloning a single file. When I cloned a full linux-2.6 tree there was a immediate BUG_ON (after third cloned file) in btrfs_delayed_update_inode with -ENOSPC : [ 925.546266] [ cut here ]

Re: [RFC, crash][PATCH] btrfs: allow cross-subvolume file clone

2011-08-03 Thread David Sterba
On Wed, Aug 03, 2011 at 08:07:42PM +0200, David Sterba wrote: I'm working on a patch to fix cross-volume cloning, worked for simple cases like cloning a single file. When I cloned a full linux-2.6 tree there was a immediate BUG_ON (after third cloned file) in btrfs_delayed_update_inode with

Re: [RFC, crash][PATCH] btrfs: allow cross-subvolume file clone

2011-08-03 Thread Miao Xie
On Wed, 3 Aug 2011 20:07:42 +0200, David Sterba wrote: I'm working on a patch to fix cross-volume cloning, worked for simple cases like cloning a single file. When I cloned a full linux-2.6 tree there was a immediate BUG_ON (after third cloned file) in btrfs_delayed_update_inode with -ENOSPC :

Re: [RFC, crash][PATCH] btrfs: allow cross-subvolume file clone

2011-08-03 Thread Li Zefan
David Sterba wrote: On Wed, Aug 03, 2011 at 08:07:42PM +0200, David Sterba wrote: I'm working on a patch to fix cross-volume cloning, worked for simple cases like cloning a single file. When I cloned a full linux-2.6 tree there was a immediate BUG_ON (after third cloned file) in