From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A288EC432BE for ; Wed, 28 Jul 2021 02:21:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7E46B60F5E for ; Wed, 28 Jul 2021 02:21:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233461AbhG1CVA (ORCPT ); Tue, 27 Jul 2021 22:21:00 -0400 Received: from zeniv-ca.linux.org.uk ([142.44.231.140]:40582 "EHLO zeniv-ca.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233223AbhG1CU7 (ORCPT ); Tue, 27 Jul 2021 22:20:59 -0400 Received: from viro by zeniv-ca.linux.org.uk with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1m8Z7N-004Wpx-W6; Wed, 28 Jul 2021 02:16:22 +0000 Date: Wed, 28 Jul 2021 02:16:21 +0000 From: Al Viro To: NeilBrown Cc: Christoph Hellwig , Josef Bacik , "J. Bruce Fields" , Chuck Lever , Chris Mason , David Sterba , linux-fsdevel@vger.kernel.org, linux-nfs@vger.kernel.org, linux-btrfs@vger.kernel.org Subject: Re: [PATCH 05/11] VFS: new function: mount_is_internal() Message-ID: References: <162742539595.32498.13687924366155737575.stgit@noble.brown> <162742546552.32498.14429836898036234922.stgit@noble.brown> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <162742546552.32498.14429836898036234922.stgit@noble.brown> Sender: Al Viro Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org On Wed, Jul 28, 2021 at 08:37:45AM +1000, NeilBrown wrote: > This patch introduces the concept of an "internal" mount which is a > mount where a filesystem has create the mount itself. > > Both the mounted-on-dentry and the mount's root dentry must refer to the > same superblock (they may be the same dentry), and the mounted-on dentry > must be an automount. And what happens if you mount --move it?