From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from zeniv.linux.org.uk ([195.92.253.2]:59675 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966494AbcCPOZR (ORCPT ); Wed, 16 Mar 2016 10:25:17 -0400 Date: Wed, 16 Mar 2016 14:25:16 +0000 From: Al Viro To: Jordi Pujol Palomer Cc: Linux-Fsdevel Subject: Re: [PATCH] fs/namei.c: Hard link and rename should check same device instead of same mount Message-ID: <20160316142516.GK17997@ZenIV.linux.org.uk> References: <20160316140514.778db799@localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160316140514.778db799@localdomain> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Wed, Mar 16, 2016 at 02:05:14PM +0100, Jordi Pujol Palomer wrote: > Hello, > > Working on a Linux system that bind mounts some > directories, have found frequent errors when moving files between > directories that belong to different mount points but are on the same > device. > The two attached patches solve these problems on a local filesystem. > Maybe we must test it on different configurations. NAK. This is absolutely deliberate; moreover, mount --bind $DIR $DIR is often used just to set such a boundary.