Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2016047lqb; Mon, 27 May 2024 05:23:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVpoxNPgw3AyWFlm1TH7vZlRXYQG99S4+R3si2hG5NbrgpDgRddOam+Sb8RSgKn/3iu+yOoK+UiHbGlq8+i3dUBCN58Hsgun73nxYox4A== X-Google-Smtp-Source: AGHT+IE3QVUmTyCbTUn11XTq4/Aefj6jue+643xjc4I0r1qKsAYGOFxXo3ctBlIbI1LsJJ0hkMga X-Received: by 2002:a05:6602:14d:b0:7e1:7c01:46df with SMTP id ca18e2360f4ac-7e8c53c9c34mr1056914739f.12.1716812626574; Mon, 27 May 2024 05:23:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716812626; cv=pass; d=google.com; s=arc-20160816; b=dv0OO+N2WG9y9F1jclHr/5y+SL+xAAA45bN+vSaOE997EREFElyeOAE1CCpXiCNNNm aR4B4N+gBtmWjGyKJiE98gB1c3w6xcQiryXCtIXrsoy3UXq5XlVmEu7tiChH/MWWr/un 0zG16xelL+5Z1j59YUDSRoYoaEHcYSgxB+c4cTMuwMKbKJeUCOsXQsMT25Jpeukn9d3s Nx+xi+KYPKUxLHY2tVp5mrSLsJbpGsFgbk2rvtDGteJUumKxzVTI1xsTLSqOzWUj1JHH YdEfbZPGlkVqjG0uKF+ldqTFqHtRhPdXYWnMUkftTArDsNGoeDlcoKl4clurCl1GZ/Mn mvWw== 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=SO38HnffZz03OqFuh9LwkKbE2IqEqvFY1Igx7e23hDY=; fh=VVA9PLnrJy99+CIRYuxwapdbmrefRiakInyegGkiaxE=; b=emRjcMhfkFN347yoqqhjsscTa/8aD8c25TuuZUGKUAT+zqxfP6n3MM9bfoDp/UFFYl L7utGW/MoL2rLmL6BSmB/rcA2MycndduJbpXaBI+G//Hs9MuQeccuy6Uwdxn4x9fL89o cboetsmRQXVkkV787QOdy53ppY/YrwmFQKMQKQMIMbz5NUz2WKOZ+w6O+OewddrrHSSI nksqW4ANwG3/DOtM7Jm0nHL+TJd3U0Ez45Sp2mXbrA0BqwB8ABhMjtYVGfOcf8Q4wPYB 3XP8jHtaK9arWlj+ljhxJbUEDxyjPk7BT2rLmtBF04ks61VSkzsz9iED46KKtJomVZhB oLXA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=i0+I04OF; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-nfs+bounces-3404-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-nfs+bounces-3404-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6822974ac6fsi6200913a12.594.2024.05.27.05.23.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 05:23:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs+bounces-3404-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=i0+I04OF; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-nfs+bounces-3404-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-nfs+bounces-3404-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 3AA41284008 for ; Mon, 27 May 2024 12:22:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 854B915E5A8; Mon, 27 May 2024 12:22:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="i0+I04OF" X-Original-To: linux-nfs@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 5320915DBD8; Mon, 27 May 2024 12:22:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716812553; cv=none; b=d72pYwCQbqcKRfNbN6LMOgi2kOwzol4lFCsDpu9xnFpYs2O8yqf71+41kLEtnUmSMbl4/Y9XjC3aAESkABuZXH8K6DnJuClsFISAn6u8/9WZomQKrrTLZE25X5kuyJk5+4UV/tBBuL2nQEdnmFgFAmuZEhLNMKgiGGfgF2dARX4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716812553; c=relaxed/simple; bh=yHJzZg9NLe7BwyCieTg7X7Yyi9SCyCbH1Qa/QbiSgek=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=bWnl9Y7sodbOt11do/pKClNmUAOaoLTa4inZm58+WZYw80ZOsbwFZWx50Q3gLqs0I7ZHlJ2Ity22n0FFub5Nc4q8BSuoytNS7b1pMnqCHXnsQgudWI+WWMUg92rd+Rc06BxMPzY1TqZ2xmDfCOLFqVWHuyiTYseipcqp0iFyoFs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=i0+I04OF; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 94775C2BBFC; Mon, 27 May 2024 12:22:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716812552; bh=yHJzZg9NLe7BwyCieTg7X7Yyi9SCyCbH1Qa/QbiSgek=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=i0+I04OFzv6NUu6oV+j2DKrGONKwRg6EzdprBNtcV3ivr6V0A6rT17APbDPi806ul o4hmK2/55XkPEeKs3wCXBNCWg7EbFt19RVPP4sGYfSE4sYw2CAnRUMCyzyjaM4T1zc xPlQBdiC7qD/cDaC3FUoBP6NY3iuwrNLiSLkAEaAgcHbTKqaxzQx5BeeW2BOsw3Wec fv/ZwyPWIMaLVW9hwfdUzbr+GpmUihxzPeDmucQOhF//ivJFphxOyPJp8VTuyBNRfX k2kFZsvC6FDLS/oo8jz3ONdLMhQKlG2hs3FX9djiUJpnImTGqR042RMbbQBouBgYcZ nv+nh0GiX5njA== Date: Mon, 27 May 2024 14:22:26 +0200 From: Christian Brauner To: Christoph Hellwig Cc: Aleksa Sarai , Alexander Viro , Jan Kara , 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: <20240527-montag-beruhen-523b74214339@brauner> References: <20240523-exportfs-u64-mount-id-v2-1-f9f959f17eb1@cyphar.com> 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=utf-8 Content-Disposition: inline In-Reply-To: On Sun, May 26, 2024 at 02:25:34AM -0700, Christoph Hellwig wrote: > On Thu, May 23, 2024 at 01:57:32PM -0700, Aleksa Sarai wrote: > > Now that we provide a unique 64-bit mount ID interface in statx, we can > > now provide a race-free way for name_to_handle_at(2) to provide a file > > handle and corresponding mount without needing to worry about racing > > with /proc/mountinfo parsing. > > file handles are not tied to mounts, they are tied to super_blocks, > and they can survive reboots or (less relevant) remounts. This thus > seems like a very confusing if not wrong interfaces. I'm not fond of the interface as I've said on an earlier version, but name_to_handle_at() has always exposed the mount id. IOW, this isn't adding a new concept to the system call.