Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757483Ab2FTR1R (ORCPT ); Wed, 20 Jun 2012 13:27:17 -0400 Received: from mail-pb0-f46.google.com ([209.85.160.46]:38718 "EHLO mail-pb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754410Ab2FTR1P convert rfc822-to-8bit (ORCPT ); Wed, 20 Jun 2012 13:27:15 -0400 MIME-Version: 1.0 In-Reply-To: <4FE205CF.9020509@libero.it> References: <1340188512-5761-1-git-send-email-ablock84@googlemail.com> <4FE205CF.9020509@libero.it> Date: Wed, 20 Jun 2012 19:27:14 +0200 Message-ID: Subject: Re: [PATCH] Allow cross subvolume reflinks (2nd attempt) From: Alexander Block To: kreijack@inwind.it Cc: linux-btrfs@vger.kernel.org, dave@jikos.cz, hch@infradead.org, linux-fsdevel@vger.kernel.org, chris.mason@fusionio.com, linux-kernel@vger.kernel.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1141 Lines: 31 On Wed, Jun 20, 2012 at 7:18 PM, Goffredo Baroncelli wrote: > Hi Alexander, > > On 06/20/2012 12:35 PM, Alexander Block wrote: >> The patch also does proper vfs mount checks, so cross mount >> point reflinks are not possible with this patch. It only allows cross >> reflinks between two subvolumes which are in the same mount point. > > Thanks for working on that. What happens if two subvolumes of the same > filesystem are mounted on two different places ? > > I usually do: > ?mount -o subvol=__active /dev/sdX / > ?mount -o subvol=. ? ? ? ?/dev/sdX /var/btrfs > > So two different subvolumes of the same filesystem (the one on /dev/sdX) > are mounted on two different places. > > Is it possible to do > ?cp --reflink /tmp/foo /var/btrfs/tmp/foo2 This will fail with -EXDEV. The patch explicitly forbids reflinks crossing vfs mount boundaries. > > Thanks > G.Baroncelli > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/