Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp1359828pxy; Sun, 1 Aug 2021 22:41:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxXyLaGqeHAxGksk8XU27eD9wWk8V3FI+PZM4KnYQm+ElsOVUZM7S2LMA9eSvCzyCf3X7qO X-Received: by 2002:a92:d9d0:: with SMTP id n16mr3197787ilq.298.1627882881865; Sun, 01 Aug 2021 22:41:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627882881; cv=none; d=google.com; s=arc-20160816; b=0P+dhDbx8nYikxDpEGTgD4sYlNgYQb6ukg7Tob3D0tP0zmQ/lD1Vb/YthqyUQ1h5v0 LdAfivsilPFByAhGpXd5drmfzQqCOeC0eTr9SfNv31XyJ1xapMwFtF4LMT9G2Zfu0qLQ 1zOtxOcLSnk6lHOx4aDxsF+s3l/tWUcGaP8zt7F2xGup41R94VBG9MrSTElKhoFWkPDe B6EeaTra9OxSgDWTrD1/MlPfNzRfWzdopsJdRgcnb1ZkT9iSQDsXHcUosTnLj6azqxy8 1Vle97rmLPX+SFGAAPf3wEMjW7ka4n/S9l4nMzPK4N0LYBJcYbTAw8Ho7tILmod5R+D2 i/Lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:references:in-reply-to:subject :cc:to:from:mime-version:content-transfer-encoding:dkim-signature :dkim-signature; bh=0eTCphXb+i+pysVmk1KQqkDmYKKDI8E5qVhYYeFRng8=; b=fuE0KTxf4UpROU/qoNxAdxh9NhVlVIK4oswsXMhwwmyY+PankooWDlPJcFIMGs3tTj JnCdYUAPoe9S0XLXro8eEpzmVg2GhyRxiiOYR6VM4tiWS96RlPvGhvqyMeyqK/eJ1ZNh Il+IfZHE3hjW1K6+ZuhYfmu/pdHffwLyEkaURm0eZdO6tKLTnoqd2r2hmbupuT4waBBD J8lRbdcw9X9RGi2g7O03W3m3oYwikwfpnroS7oQv5Pvf74sXmjJhxaEPWYHqC0oUQ0ll lSnPl7VLrZz0qCSaEHo7uwamaQFuX4W19pHsFJNuvN/BniIk9Nd+rNSsMY6lRqsL4JHC gcJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=1TyMojse; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b="H/vqUfbH"; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h21si10108261ila.73.2021.08.01.22.41.09; Sun, 01 Aug 2021 22:41:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=1TyMojse; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b="H/vqUfbH"; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229888AbhHBFlM (ORCPT + 99 others); Mon, 2 Aug 2021 01:41:12 -0400 Received: from smtp-out2.suse.de ([195.135.220.29]:52584 "EHLO smtp-out2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229495AbhHBFlM (ORCPT ); Mon, 2 Aug 2021 01:41:12 -0400 Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 7E28C1FF22; Mon, 2 Aug 2021 05:41:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1627882862; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=0eTCphXb+i+pysVmk1KQqkDmYKKDI8E5qVhYYeFRng8=; b=1TyMojseb7Ug7vlLlk69fqN/1zgOu2uM934P5/wVKNsaS2xwBNk0FRJ4lOklpDz9ljE9LX o9Bqyala1XtFdXu74tiX7cZY9UamvWMxoM0/nOEmEyiuh3yTjyDVSBRjLC46KRIuDbQht5 //sz2tN1XqtNeSUIELzqRqgMC0wIY0M= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1627882862; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=0eTCphXb+i+pysVmk1KQqkDmYKKDI8E5qVhYYeFRng8=; b=H/vqUfbHtAsRjfVpG4VqcMpUc1kZfh2qZpRMfJGpDuQE/ovF0qeF46pwYfTYjrcneHZEbH 0YDdntDUgPtOm9Dw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 563E613A09; Mon, 2 Aug 2021 05:40:59 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id Qa6FBWuFB2HxdwAAMHmgww (envelope-from ); Mon, 02 Aug 2021 05:40:59 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 From: "NeilBrown" To: "Al Viro" Cc: "Miklos Szeredi" , "Christoph Hellwig" , "Josef Bacik" , "J. Bruce Fields" , "Chuck Lever" , "Chris Mason" , "David Sterba" , linux-fsdevel@vger.kernel.org, "Linux NFS list" , "Btrfs BTRFS" Subject: Re: A Third perspective on BTRFS nfsd subvol dev/inode number issues. In-reply-to: References: <162742539595.32498.13687924366155737575.stgit@noble.brown>, <162742546548.32498.10889023150565429936.stgit@noble.brown>, , <162762290067.21659.4783063641244045179@noble.neil.brown.name>, , <162762562934.21659.18227858730706293633@noble.neil.brown.name>, , <162763043341.21659.15645923585962859662@noble.neil.brown.name>, , <162787790940.32159.14588617595952736785@noble.neil.brown.name>, Date: Mon, 02 Aug 2021 15:40:56 +1000 Message-id: <162788285645.32159.12666247391785546590@noble.neil.brown.name> Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Mon, 02 Aug 2021, Al Viro wrote: > On Mon, Aug 02, 2021 at 02:18:29PM +1000, NeilBrown wrote: > > > It think we need to bite-the-bullet and decide that 64bits is not > > enough, and in fact no number of bits will ever be enough. overlayfs > > makes this clear. > > Sure - let's go for broke and use XML. Oh, wait - it's 8 months too > early... > > > So I think we need to strongly encourage user-space to start using > > name_to_handle_at() whenever there is a need to test if two things are > > the same. > > ... and forgetting the inconvenient facts, such as that two different > fhandles may correspond to the same object. Can they? They certainly can if the "connectable" flag is passed. name_to_handle_at() cannot set that flag. nfsd can, so using name_to_handle_at() on an NFS filesystem isn't quite perfect. However it is the best that can be done over NFS. Or is there some other situation where two different filehandles can be reported for the same inode? Do you have a better suggestion? NeilBrown