From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from magic.merlins.org ([209.81.13.136]:40268 "EHLO mail1.merlins.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751282AbaAYJRF (ORCPT ); Sat, 25 Jan 2014 04:17:05 -0500 Date: Sat, 25 Jan 2014 01:17:05 -0800 From: Marc MERLIN To: Maxdamantus Cc: linux-btrfs@vger.kernel.org Subject: Re: Fwd: Is there a lightweight copy from one subvolume to another? Message-ID: <20140125091705.GB7555@merlins.org> References: <20140125070415.GB14998@merlins.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: Sender: linux-btrfs-owner@vger.kernel.org List-ID: On Sat, Jan 25, 2014 at 09:50:48PM +1300, Maxdamantus wrote: > Due to what I understand is some VFS limitation, you can only > reflink-copy between subvolumes under one Linux mountpoint. If > /mnt/btrfs1 provides access to all subvolumes, you should be able to > copy between them through that path, but you won't be able to copy > them across mounts, even `--bind` ones. That was exactly my understanding too. > > gargamel [mc]# cp -av --reflink=always misc/olympic Video/misc/ > > `misc/olympic' -> `Video/misc/olympic' > > `misc/olympic/file.avi' -> `Video/misc/olympic/file.avi' > > cp: failed to clone `Video/misc/olympic/file.avi' from `misc/olympic/file.avi': Invalid cross-device link The test above was done in /mnt/btrfs_pool1 and failed as shown here. Yet gargamel:/mnt/btrfs_pool1# btrfs subvolume list . ID 257 top level 5 path misc ID 258 top level 5 path Video ID 259 top level 5 path media ID 260 top level 5 path Sound ID 261 top level 5 path zoneminder ID 262 top level 5 path other Aah, but it looks like this was my problem: 'Preparing to replace coreutils 8.13-3.2 (using .../coreutils_8.21-1_i386.deb) ... now cp --reflink works as expected. Thanks, Marc -- "A mouse is a device used to point at the xterm you want to type in" - A.S.R. Microsoft is to operating systems .... .... what McDonalds is to gourmet cooking Home page: http://marc.merlins.org/