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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AAFA8C4167B for ; Tue, 31 Oct 2023 17:07:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343986AbjJaRHe (ORCPT ); Tue, 31 Oct 2023 13:07:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34382 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236472AbjJaRHW (ORCPT ); Tue, 31 Oct 2023 13:07:22 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 56750121; Tue, 31 Oct 2023 10:06:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=gVrSb6ojLUF83IpVsMcphzdsrvPel1nnNKLfkdHef7I=; b=kBk+sF70AvMf4h6sOyGnKsFV6d tHWUt/CD6pYYaSSyFRnwOrHRupC3C8o//PQkZwfRy0/DomvCGGZmcNSEWLUhAN3DcQ/HL7PjuPKfA b9rG0wO4A36iynTsPQXxzNrlxdOXJjfUSGG3WHBnZ22pRVNycKY7p6d/UEIwQ2/KTgO6tKUYJzOKL +2cz8HfZlhu086RD+D0SnndxgBmkuKpGtoni8CLvfqvFaKZFA+1//nXRA9/Q1B1yC3AeVrlvDkLEs z/7g2wbMoht7kJLy8mlF9y8r8zGSBm1gS48EJaBQMjfmj1DecpbMYsUtrcwDj0uG1KGMx6xtxqJrG r9bGW8/A==; Received: from hch by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1qxsC1-005oV0-1F; Tue, 31 Oct 2023 17:06:17 +0000 Date: Tue, 31 Oct 2023 10:06:17 -0700 From: Christoph Hellwig To: Christian Brauner Cc: Christoph Hellwig , Josef Bacik , Amir Goldstein , Jan Kara , Chris Mason , David Sterba , linux-btrfs@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH 0/3] fanotify support for btrfs sub-volumes Message-ID: References: <20231025135048.36153-1-amir73il@gmail.com> <20231025210654.GA2892534@perftesting> <20231027131726.GA2915471@perftesting> <20231031-faktor-wahlparty-5daeaf122c5e@brauner> <20231031-anorak-sammeln-8b1c4264f0db@brauner> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231031-anorak-sammeln-8b1c4264f0db@brauner> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org On Tue, Oct 31, 2023 at 01:50:46PM +0100, Christian Brauner wrote: > So this is effectively a request for: > > btrfs subvolume create /mnt/subvol1 > > to create vfsmounts? IOW, > > mkfs.btrfs /dev/sda > mount /dev/sda /mnt > btrfs subvolume create /mnt/subvol1 > btrfs subvolume create /mnt/subvol2 > > would create two new vfsmounts that are exposed in /proc//mountinfo > afterwards? Yes. > That might be odd. Because these vfsmounts aren't really mounted, no? Why aren't they? > And so you'd be showing potentially hundreds of mounts in > /proc//mountinfo that you can't unmount? Why would you not allow them to be unmounted? > And even if you treat them as mounted what would unmounting mean? The code in btrfs_lookup_dentry that does a hand crafted version of the file system / subvolume crossing (the location.type != BTRFS_INODE_ITEM_KEY one) would not be executed.