Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp295178lqh; Fri, 31 May 2024 01:14:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVjc+eirEHbh9MSphA+N4UdiCNU9F2gcP/PxqvhK0/ojAMFP75KqU6L415URS9jctlxfjfBaaOTOhgaljzHkPzztzsRoEqAGThhowBEUw== X-Google-Smtp-Source: AGHT+IEiSWMoFyW+re0W67FdVd2QZ6zOzIpEEQ8w6QNdWo/77VMgds0ER6XiK0BzTFv/9tdAFHW9 X-Received: by 2002:a05:6214:5d92:b0:6ad:63ce:e14f with SMTP id 6a1803df08f44-6aecd5760c2mr11546696d6.20.1717143299450; Fri, 31 May 2024 01:14:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717143299; cv=pass; d=google.com; s=arc-20160816; b=MCClvnqtkMO3n71+0vJJxfNxxKioj5/N4R4Uws6gXRuBScN4cutjShSaKCQWYR9R3s e6fIGQd8yYr5XyZNI+Ovz2mxqig5Iw7JYDaKYSyNkLPAbh1C8yKrue+ab55rdRNKx/LR cdj3chClxwZNrsZ5eJ8P+J50sgRND6R/OiMdrTLZmrkXilAkP2J/SJZxkKl4rcp4CIGB M4+ThfEqYTzhby5uqKfHTw2ztaotdmZd1n8d2NPcCCtulI7L/cgjEh/Fkk2fbM+5F1kv brWk5ToaXGursMlIeiEKN6XTmf2bVc89GA4JE7Q6WcKc4KRUusqrUhfTxXA6x8Cabg24 427Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=zCPwI73R4MJQqX+IZ9CDgIEhpJs+l0IYh+oqHsV7kBQ=; fh=lPTOqyDu+Xj/Nk+cL2qr+U3k52eMmmVj/0lBaUQ1MwU=; b=ku75D7+Rj7CC1eJKI1ujVy2M0Uuq219B3XFp8XFVpaqOz9uP3vNUbg4zACYDjH2yc2 ofgfdQWhdCv1nI/Y5b5wyHX5Ax80rlsQe4E5b2rsnEUf5Cg37asmvV6QvaRYeqCzbtlX nSMn+T8rfB+pN+bdtCGfITdV0Ei9MS8eTE1ctqDILsl9XDEXktp3wdsXfa2DO72rIdan 0iuZ0a2So7iTGznaeP4K9l8bG3in+VGnpmD2TS+ruftM25NcMNWcfDUqs/1VNAeV2BIj PuYsMhkwp9K2FXuHJWpNYefSi1rhatYtVDVgvD/V+WTd6Cq3jmdGHBF2c9TbwYl43YFr YVoA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=hsfv1nU3; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-nfs+bounces-3503-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-nfs+bounces-3503-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 6a1803df08f44-6ae4b414965si14632886d6.345.2024.05.31.01.14.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 01:14:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs+bounces-3503-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=hsfv1nU3; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-nfs+bounces-3503-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-nfs+bounces-3503-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 3018A1C20F35 for ; Fri, 31 May 2024 08:14:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CBA068062A; Fri, 31 May 2024 08:14:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="hsfv1nU3" X-Original-To: linux-nfs@vger.kernel.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7ACCB78276; Fri, 31 May 2024 08:14:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717143260; cv=none; b=ngNXqkjmuGzpwGy6u4bUyeKInPMGh3GADVgzDnIvkQr5c+/dJ9N1SZXPJYlv4Ij6lfmt3iCliec34ES04rMTkzOHtEg1QYgWgK4okekW1K6fXf0508cVyAXKgdqO1GU2F4GPj2fNcOvMIS0Eym7DhURQ9Qg0rZMCz28STeOyTcI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717143260; c=relaxed/simple; bh=L2wsg+UyGOMk0Z8wJlmeo08VtpIEFKjlqtaUhQDmXUo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=qghIkjK7OE9rd4mQaqHX6lNK+Uwh9Vlon/8RKuRtsKeGZvDcfmP9HpfaAp691rpoFEg4kzBHufwbahMoi1ict8RKTvIDR2Zgcwm7Rs7mv2N1ZV0HOQAxxljkLoxYOmTbrJxz+njwl8pBTFV7sV1GgFV9J4LMSHUgZVNaEl57nK8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=hsfv1nU3; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org 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=zCPwI73R4MJQqX+IZ9CDgIEhpJs+l0IYh+oqHsV7kBQ=; b=hsfv1nU3pxWAGTPmsBQnTuh8pp WHIwLFYZ1Hink6MH2uwDexSiqz9mOEU9Lqw5reCTaPE/vnkTsYkew/6XnRbbePMnqHLsqIriKOsqO nN0RqaREbXpipEsSuBdZ1UySx6WgPstFPDbZ+Sc9FA8oTpCc4rzouziREPQRDdzUmAUy06Y6LrqYG tjfEXez5qeTV8T96lmsU9b9EIZrn7nmMOKgKT4JSmLY5HwuO+V61UwEv+7ycyAjFkRbkZBbeXMdj9 peQXyRbt/oasf4aZQLN7clcZ32eWRKMTT96iIIMsigVQJ6Bol2cO6fIWy02vi487cdMjL4tei3J15 4+GB8cCg==; Received: from hch by bombadil.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1sCxOv-00000009aJO-42ve; Fri, 31 May 2024 08:14:13 +0000 Date: Fri, 31 May 2024 01:14:13 -0700 From: Christoph Hellwig To: Christian Brauner Cc: Christoph Hellwig , Jan Kara , Aleksa Sarai , Alexander Viro , Chuck Lever , Jeff Layton , Amir Goldstein , Alexander Aring , linux-fsdevel@vger.kernel.org, linux-nfs@vger.kernel.org, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org Subject: Re: [PATCH RFC v2] fhandle: expose u64 mount id to name_to_handle_at(2) Message-ID: References: <20240527133430.ifjo2kksoehtuwrn@quack3> <20240528-wachdienst-weitreichend-42f8121bf764@brauner> <20240528-gesell-evakuieren-899c08cbfa06@brauner> <20240528-gipfel-dilemma-948a590a36fd@brauner> <20240529-marzipan-verspannungen-48b760c2f66b@brauner> Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240529-marzipan-verspannungen-48b760c2f66b@brauner> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html On Wed, May 29, 2024 at 09:40:01AM +0200, Christian Brauner wrote: > Yeah, that's exactly what I figured and no that's not something we > should do. > > Not just can have a really large number of superblocks if you have mount > namespaces and large container workloads that interface also needs to be > highly privileged. Again, that would be the most trivial POC. We can easily do hash. > Plus, you do have filesystems like btrfs that can be mounted multiple > times with the same uuid. Which doesn't matter. Just like for NFS file handles the fs identifier identifier plus the file part of the file handle need to be unique. > And in general users will still need to be able to legitimately use a > mount fd and not care about the handle type used with it. I don't understand what you mean. If we hand out file handles with fsid that of course needs to be keyed off a new flag for both name_to_handle and open_by_hnalde that makes them not interchangable to handles generated without that flag.