Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp446129lqb; Tue, 28 May 2024 23:34:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVgUuvSBj29tnbkN9lrIXAzsvj/l9+5LXfj/nDoAv9cC4wcTC60hjNoaf7rX7sdh4L3ddocBPXdAy1u0Iz7jyeBih6PBhePmBme6EYSZg== X-Google-Smtp-Source: AGHT+IH8YJqxIy8ATFLZHDp159jYnNBcfSCUhdSX47w9V7Ng3QBr0YLU3pScH7fL3DFeZ2PO2B+E X-Received: by 2002:a05:620a:100d:b0:794:c122:e5ec with SMTP id af79cd13be357-794c122e914mr855494085a.77.1716964485953; Tue, 28 May 2024 23:34:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716964485; cv=pass; d=google.com; s=arc-20160816; b=WCT+0PlBpNInKca7pRMzrQI7od+cLvaN8T2GZ42L4KkJOM5fG8jth7W426mN0RYTaJ RgYZcypfc6sjNFcsh6cqVpl/PqGaebhpesXWZl5Q3rX6WQzpmK3IPnpXgKD1iMTwAVuv PrS80QGn2akq9ay5vyR21qWYsulMI8LV2OwZ+8mNOJP9DuN5/rThCLepMDp9nqO1nVBZ JrbIU2G3BbaUIYmBODumHEx+7Y1vFTqZIdN5U879IwiXrwrMz72Vo75ZRm5i/15dC+D/ k2DlymNmLA41UUrBaMnGsm8O+NpVi/df/TJ05P7cSu7bI1gJEiCKqGz8qE+uY50ZSVrT Frow== 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=Rx87dGz3DyMKaLnAETMLgQ1KIZQ/AQu9Pno6waQB1SQ=; fh=BFA/RIFkaYGnssBYpoMxKGU16SIIcxm/gtQRILl0gAs=; b=xe4AWYsX8sN1FTlzV0Uc7Bnc2g6Petm4gNTmH2pdDnAswGjK2aXZQ5sMalnxmWKJDG A5mz2lQkVh6x9hL+PnL8y7qkq5vCUdSSSeogMkDYgCrNNeaOLFAhIJ8bQsuxeXCcaaoX 6x1ycsj5KShillkCp3kI/cCvFruFf0wL0DiXaQZaqBWxiaig/lk9D6guyFQRSMHsVubY Z7pmZxDCJ4R7eQMM8zFxagGwNDqU29fL2nSGCP2wYb3yIOXLjIRQ2LBc8+q/01mid5QA MaYJwgUhSYuwSH0jEtCd8D6S32jkyrLJKtjMjuNGFxaeg96/3EyLZtwusPXy+Su+b4Qa Pt7Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=uENoG1Zn; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-nfs+bounces-3465-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-nfs+bounces-3465-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-794abcab979si1195382385a.30.2024.05.28.23.34.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 23:34:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs+bounces-3465-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=uENoG1Zn; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-nfs+bounces-3465-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-nfs+bounces-3465-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 A90D71C23876 for ; Wed, 29 May 2024 06:34:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1461915CD4C; Wed, 29 May 2024 06:34:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="uENoG1Zn" 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 CC73515B14D; Wed, 29 May 2024 06:34:32 +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=1716964474; cv=none; b=kWqjYfVIX1IUenJ9BmdGgDZjUppJAuqTafgMSMRWwbiGfsHi5s7FJAmimFrZhJ5Rjwv0nl0Tyw+gLGmw/6MoBRiafP4FkIzwemhfkCMVlvw6C+MCZ4bdI15fusUjU6KbJJdNFrPVK/6QVQnO7REfAT33GmiZMkKK//AeaBSlYH0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716964474; c=relaxed/simple; bh=UJG3C7EBMDjny9IFJF1bwm2VemwEnL8DukEB9yRxuiY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=i9cM2oNh7ngOB+I1a8PwEoKXhmKvFlEQ+YIslRxy4pE+lI1l2qHQ0e+jAo5Kcx/ULXhT4m2Eao+c8x+bmpz7qR1xXpk1JAByYhjJFo9H95y2Tl9E6gPgu+hSS+tXW0QteYfagNdZlhRWMiwLIPXsCamtS8fJRlsBbmUQ85qH1oY= 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=uENoG1Zn; 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=Rx87dGz3DyMKaLnAETMLgQ1KIZQ/AQu9Pno6waQB1SQ=; b=uENoG1ZnzwGU2je4euK44xlcX/ s+rFRqQvb2EDF5T3605za7qYSwhyhGWSqfkrjPFtQwI9hRAl+4EVg1WdlzAMtUg0d2UUbW60qFKRw dsP0DZ5ORvaE80Xt/luLVDa0V6bu55dGz+bkwubLx4CAqYT9kKoCtaxk0Z4npO93Oy+zUT0zUmrlq T2J+5dFzyuvZq+73+t2kWscrX6qyNFjCVLnJrn4ANxdhmbaxSewKl4vQDI1jCdp/J01NUFdMOd+D4 QPrKyT8hWL74Ee4SInYYEdYlPimc+djRE4aQdUT4xS3iSEzaMTunAcpE2AVp+DUcJqX/+EKG9qrqd fveMldCg==; Received: from hch by bombadil.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1sCCtI-000000031cF-3Anh; Wed, 29 May 2024 06:34:28 +0000 Date: Tue, 28 May 2024 23:34:28 -0700 From: Christoph Hellwig To: Miklos Szeredi Cc: Christoph Hellwig , Christian Brauner , 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> 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: X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html On Tue, May 28, 2024 at 03:28:18PM +0200, Miklos Szeredi wrote: > > open_by_handle_at looks up the superblock based on that identifier. > > The open file needs a specific mount, holding the superblock is not > sufficient. A strut file needs a vfsmount, yes. And it better be reachable by the calling process. And maybe an optional restriction to a specific mount by the caller might be useful, but I can't see how it is required.