Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2059688rda; Tue, 24 Oct 2023 11:02:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGuzJHRX9s1vaI38H4vbtAVSv+JdramaCsac++NvbzPCORDr197RnEMaAWERd/hJFHOQHPQ X-Received: by 2002:a17:902:e3cb:b0:1c6:1cd8:5b59 with SMTP id r11-20020a170902e3cb00b001c61cd85b59mr10671124ple.1.1698170532027; Tue, 24 Oct 2023 11:02:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698170532; cv=none; d=google.com; s=arc-20160816; b=WgymY3VbKHyJN7kdwIs1qjRdcBLXfZYQk5Sob/nczOS+qvPNFouYYJ8t1SKMWoi2mK NnrNzMYCzcvx+Ewxtk6qMRtu15lzbcrA5DvbBYeRNIRjTszspKGxHxXohqK+Pg2/ikYq jqoCb+nMYJVEa+gx8qegG+v/G+fUKOaAHuiNLgQYExW/Tqm1T7H21tO6q0Bb1G/8c8+y 3foEmQoi0LsC+oUIi9bLt/B1Ys/o1hXFrin/S8KADivV696ww3j1uDz76rc1Zb5N27x/ hN1wigpGJ8Z7CKy43G3nFKaqA9MquR7+CCWBdW8Y6UUm5wNdaPc89oS5L9UMniJPlcPJ GHrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=/rRUTdijOYZODyhIUu5lwhM1sh+LeLiZh2xcrppa9E0=; fh=HVDi2sZ9UI5PcFEGHWcdhJF9d5FhhTRPU659OpPv54s=; b=uJo9cgSKykRi88f8cSm0vWOH8PVeSbYtJjl9TKR7Dp25qCp/GkGyibZHBVcHlsrsKy QRAMPuGd/a8fQVjUHsxlVcpWDlUMIcEzuKRnO3PR8Q8T+hSHcXZDClisfrgw7cG34wIG 8gSR66wJiF4TnGT5/Qeb1v2eH6uEGs410TGwADFHqeQXPaZ9MOkFv9c/tWFzL31+9Of/ m8tnWRTEZxP+cNsNcBOpoPaexOK7Stwwu/9ykJjRkFYGb6YMNYCJYUI/+LWhfbdAgWHm +i8QNP7SfXWS+N1HdvCVi0K0fl97DXLx1gLDBU/RIOYBQnRRONKf93bZ6ucCuJDIkTnA yXSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=g0kXDZdK; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id 18-20020a170902ee5200b001c427a74e31si8363987plo.628.2023.10.24.11.01.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 11:02:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=g0kXDZdK; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id C13598050617; Tue, 24 Oct 2023 11:01:46 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343769AbjJXSBq (ORCPT + 99 others); Tue, 24 Oct 2023 14:01:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55682 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343883AbjJXSBo (ORCPT ); Tue, 24 Oct 2023 14:01:44 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7FA0610CF for ; Tue, 24 Oct 2023 11:00:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1698170458; h=from:from:reply-to:subject:subject: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=/rRUTdijOYZODyhIUu5lwhM1sh+LeLiZh2xcrppa9E0=; b=g0kXDZdK6tuZE3YVa8YtZJYcc5DRRJIjV7Ehv2q1gpeV2b2sCtJs8e3YelLofZTOEqtvTF 2eAhVk1Tn6ePo/l6gFRwXFRYFLTRiWTcZhWhhII2obxcu6wVlc/XvjDcugzLzgMJFKPkEF VHGnsrOhpyPdBh5stb69FEgUB+SQpEY= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-210-qDrhfe1EOneTbvC3vZXt9Q-1; Tue, 24 Oct 2023 14:00:57 -0400 X-MC-Unique: qDrhfe1EOneTbvC3vZXt9Q-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 34D82857A86; Tue, 24 Oct 2023 18:00:56 +0000 (UTC) Received: from [100.85.132.103] (unknown [10.22.48.7]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 883682026D4C; Tue, 24 Oct 2023 18:00:54 +0000 (UTC) From: Benjamin Coddington To: Amir Goldstein Cc: Trond Myklebust , Anna Schumaker , Jeff Layton , Chuck Lever , Christian Brauner , Jan Kara , linux-fsdevel@vger.kernel.org, linux-nfs@vger.kernel.org Subject: Re: [PATCH] nfs: derive f_fsid from server's fsid Date: Tue, 24 Oct 2023 14:00:53 -0400 Message-ID: <41F5B54F-0345-4C44-99FB-6E2A6C9F365C@redhat.com> In-Reply-To: References: <20231024110109.3007794-1-amir73il@gmail.com> <1CFE0178-CE91-4C99-B43E-33EF78D0BEBF@redhat.com> <2382DA9B-D66B-41D9-8413-1C5319C01165@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.4 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Tue, 24 Oct 2023 11:01:46 -0700 (PDT) On 24 Oct 2023, at 13:12, Amir Goldstein wrote: > On Tue, Oct 24, 2023 at 6:32 PM Benjamin Coddington wrote: >> Yes, but if the specific export is on the same server's filesystem as the >> "root", you'll still get zero. There are various ways to set fsid on >> exports for linux servers, but the fsid will be the same for all exports of >> the same filesystem on the server. >> > > OK. good to know. I thought zero fsid was only for the root itself. Yes, but by "root" here I always mean the special NFSv4 root - the special per-server global root filehandle. ... >> I'm not familiar with fanotify enough to know if having multiple fsid 0 >> mounts of different filesystems on different servers will do the right >> thing. I wanted to point out that very real possibility for v4. >> > > The fact that fsid 0 would be very common for many nfs mounts > makes this patch much less attractive. > > Because we only get events for local client changes, we do not > have to tie the fsid with the server's fsid, we could just use a local > volatile fsid, as we do in other non-blockdev fs (tmpfs, kernfs). A good way to do this would be to use the nfs_server->s_dev's major:minor - this represents the results of nfs_compare_super(), so it should be the same value if NFS is treating it as the same filesystem. > I am not decisive about the best way to tackle this and since > Jan was not sure about the value of local-only notifications > for network filesystems, I am going to put this one on hold. > > Thanks for the useful feedback! Sure! Ben