From mboxrd@z Thu Jan 1 00:00:00 1970 From: Al Viro Subject: Re: [PATCH 3/3] fs: Add the reflink(2) system call. Date: Sun, 3 May 2009 12:16:04 +0100 Message-ID: <20090503111604.GW8633@ZenIV.linux.org.uk> References: <1241331303-23753-1-git-send-email-joel.becker@oracle.com> <1241331303-23753-4-git-send-email-joel.becker@oracle.com> <20090503062756.GO8822@parisc-linux.org> <20090503063902.GR8633@ZenIV.linux.org.uk> <20090503074849.GA20399@infradead.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Matthew Wilcox , Joel Becker , linux-fsdevel@vger.kernel.org, jmorris@namei.org, ocfs2-devel@oss.oracle.com To: Christoph Hellwig Return-path: Received: from zeniv.linux.org.uk ([195.92.253.2]:52227 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751789AbZECLQJ (ORCPT ); Sun, 3 May 2009 07:16:09 -0400 Content-Disposition: inline In-Reply-To: <20090503074849.GA20399@infradead.org> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Sun, May 03, 2009 at 03:48:49AM -0400, Christoph Hellwig wrote: > On Sun, May 03, 2009 at 07:39:02AM +0100, Al Viro wrote: > > Another question: do we want that to work across mounpoint boundary? > > It's probably OK in this case, but... > > I don't think so. Allowing any link-like semantics over mount point > boundaries will just cause problems. Quite. I realize that this is how vfs_link() is written, but I really wonder if we should turn that if (foo->i_sb != bar->i_sb) into BUG_ON() in both. Their callers have vfsmounts and ought to do the vfsmount-level check anyway, so running into *that* -EXDEV should be impossible.