Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4312414rdb; Thu, 14 Sep 2023 20:13:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEpmpe/xa3xbpN0Utyu6szWwzVB6cqrupcXWS8XCDjiJw1kSlnGl2gMX/H34VkIImyTcvCr X-Received: by 2002:a05:6300:8088:b0:14c:c9f6:d657 with SMTP id ap8-20020a056300808800b0014cc9f6d657mr554385pzc.22.1694747636956; Thu, 14 Sep 2023 20:13:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694747636; cv=none; d=google.com; s=arc-20160816; b=hqlFsjAKA0akRbIVFD5LOmMP5Z2AsKzMtNNPRHsdBordL+AjUXGgjEvuX+fd4wZfqf AejCNw17Ibw7DnxHMQJDgLWtlaMGRGLIUBTFZWKMsrEXHVN2cB9ESH/qSHdd8RAVw9Rf 9b6d3ja7UzYdhi17uTuxnjIw85p7lF60HulrFabvpk7RRcACp0wQGQ6nXKedZ5i/dm0l ASquSBcpDLy4ZS+paqmylklJkwDvrN9iYTjG350dgcakzI48YwLkfTzX1fKrCBu/3hu8 RTKDjgg6hb6ByGXr05heLd9vDYcPokiPb+7L6d4dSkf54r8OpDAiAtGdqd/E4jL5B8Cs AwGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:feedback-id:dkim-signature:dkim-signature; bh=0JHBCsnC5ZrLuDmlCEBUAWK22MKwJq+tD4gVi2w5PPg=; fh=NH0B5jhq9S0e61oaIWRgKtfmKFY9DgREnO2axvvnJw0=; b=vTITariQKCocWg9HO1jAiI0yFvTxM+fyW01XEJMZITFfOgKTJQRMu76CzEiWrO/7g9 W0CLaDRXAOH4wl+wNTFMnWGG7DvWfCYA582CL5YWmxgV0I5A3GT/DAsfGCRvL1nSOtsx bESG5hJsZT/84KFqwmlTW1JDRYmJoteOY0kec/eyvWF5kAPIri+R1TOh7x0nPeNJsvWL l2RaLJAV89WbaStLc9sSP6alv24nrcJg3NahHlU2dl8KQVfqQLs+jkNe4UPrI1zi7qKp zbn5alUoiCMvg7uqTVoFt/QL7caUKnBKVj0kSUdsXzBFdaRh9yDPQ+r3VuywKTCaa2Nr KTXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@themaw.net header.s=fm1 header.b=HXWfi0cE; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=Yz9AZEYq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id o5-20020a17090323c500b001b8c4168e20si2667160plh.58.2023.09.14.20.13.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 20:13:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@themaw.net header.s=fm1 header.b=HXWfi0cE; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=Yz9AZEYq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 9A722858CA11; Thu, 14 Sep 2023 18:31:45 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231295AbjIOBbn (ORCPT + 99 others); Thu, 14 Sep 2023 21:31:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34708 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230193AbjIOBbm (ORCPT ); Thu, 14 Sep 2023 21:31:42 -0400 Received: from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com [64.147.123.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 81F812100; Thu, 14 Sep 2023 18:31:38 -0700 (PDT) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id CCA6B320047A; Thu, 14 Sep 2023 21:31:36 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Thu, 14 Sep 2023 21:31:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=themaw.net; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm1; t= 1694741496; x=1694827896; bh=0JHBCsnC5ZrLuDmlCEBUAWK22MKwJq+tD4g Vi2w5PPg=; b=HXWfi0cEUBqQPIYddb9OehCOk3cBKCnsnoYh8PcT4MVUQGSdjy/ 54sPgfa2PYuEg1qf+9cLKCJQ9f5Tp1wadq6kOqNG7abVGE3OwDJux93XWeir1/IA QBfINh0scmMe4huDWtncrGPxQzY/NjL5igt71oj7SFMYWUsganjD4Zt0WPFLdqgU ZwS0gdAUT2qI7eJmVqCQfSPK4WF4WEojxwHbBG1q+5cHKnMVft5inkpNXmtokQ7j eVc9yY9XLsYtXopwOZzTAqlDOXmaLzHgPXfs3yefLuo3O7XehgFWI9Xo4fwHrSEO n7CqPshDAfbyZg8KfRaH4IfRm6+bfwUKCiA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1694741496; x=1694827896; bh=0JHBCsnC5ZrLuDmlCEBUAWK22MKwJq+tD4g Vi2w5PPg=; b=Yz9AZEYqFfn+F4huwafWBIZl8zESY2kNxWKeJt05mP6MSr9nE8Q GftysHf5gjgMPRpTkbbaEZ5L6eMQVE+2DSl7/Nrb7ez5qnTv7v3klvF2ghuY+vLc 0v/DWvQeXhCGToVp33hGFqatas4frz6JvmitxcU4voHzysrXQk+ISZsN/tcKQcJf 5zjbWSd0CyAR4rOmBbkgjYcAzZQt0ZGfv700+Zj0VSeLV5A5hMIaMLizTLikoadq ZmzBqGIoXwYlGqpZUzYGtVNOUwM/eNH5GSN4kC3Tu6PH324DQdHmc7jtBaJZ/cOq pVBXOkOnIHUZ7TwQVQqWewDjNedf6OZJuNg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrudejuddggeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpefkrghn ucfmvghnthcuoehrrghvvghnsehthhgvmhgrfidrnhgvtheqnecuggftrfgrthhtvghrnh epuefhueeiieejueevkefgiedtteehgfdutdelfffhleeflefhudeuvdefhfeghfehnecu vehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprhgrvhgvnh esthhhvghmrgifrdhnvght X-ME-Proxy: Feedback-ID: i31e841b0:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 14 Sep 2023 21:31:30 -0400 (EDT) Message-ID: Date: Fri, 15 Sep 2023 09:31:28 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [RFC PATCH 1/3] add unique mount ID Content-Language: en-US To: Miklos Szeredi , Christian Brauner Cc: Miklos Szeredi , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, linux-man@vger.kernel.org, linux-security-module@vger.kernel.org, Karel Zak , David Howells , Linus Torvalds , Al Viro , Christian Brauner , Amir Goldstein References: <20230913152238.905247-1-mszeredi@redhat.com> <20230913152238.905247-2-mszeredi@redhat.com> <20230914-himmel-imposant-546bd73250a8@brauner> <20230914-jeweiligen-normung-47816c153531@brauner> From: Ian Kent In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Thu, 14 Sep 2023 18:31:45 -0700 (PDT) On 14/9/23 17:43, Miklos Szeredi wrote: > On Thu, 14 Sept 2023 at 11:36, Christian Brauner wrote: >>> Yes, one concern is that humans confuse the old and the new ID. >>> >>> I also think it makes sense to allow the new interfaces to look up the >>> mount based on either the old or the new ID. But I could be wrong >> Hm, mount id recycling may happen so quickly that for service restarts >> with a lot of mounts this becomes mostly useless... > Agreed. The old ID is mostly useful for human interaction. > >>> there, since that might encourage bad code. Maybe the new interface >>> should only use take the new ID, which means no mixed use of >>> /proc/$$/mountinfo and statmnt/listmnt. >> ... so I think that is indeed the better way of doing things. There's no >> need to encourage userspace to mix both identifiers. > Okay. I think having both is leaving more opportunity for confusion and the new mount id has a different name so I think start the move to using that now and only allow the new one for lookups. > > But I'd still leave the 2^32 offset for human confusion avoidance. Yep, agreed. Ian