Received: by 2002:a19:ef0c:0:0:0:0:0 with SMTP id n12csp951263lfh; Tue, 1 Feb 2022 12:54:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJwgWuR0VfK/EPVc07OyjmUhoLIdQkhpJ6S4hlBsOzfypplxCkFrOfxFJ7xpy2N5OvKZG/0K X-Received: by 2002:a17:90b:1c84:: with SMTP id oo4mr4379704pjb.141.1643748731970; Tue, 01 Feb 2022 12:52:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643748731; cv=none; d=google.com; s=arc-20160816; b=KclsSGiv73fxcXTV3axKOl3GY4KgM4WFpgACi0R1M5q3p69T/w1OaZLOMNrI7PhY4G 0xtXjaGX1tB2gnGby7n1DMnfx5Xg+ur3z7VoBlGvG5/jYvBl12D5lb8hYsZAoVw1b9qc tI1QRkRGzXaittBqwMFfkFUCtmzEZXEQDbBqnQPY47qXGlOQYwPM+b10oBPa6lOsAs6v gLIBrKRlQ4Qrn87LItwh7U1ABVhRLr4OEuPiDGbpCsfe8hwNfYZHAyDMqmzTc9Bsl7b8 p6sSB4k1qZ6nuy3lpOdEEbMZTyJfidety5rKZZQpX+wXZ+Bq7au3sbihrI3NXtzSH9Tj UThA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:thread-index:thread-topic :content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date; bh=vCaUqJaV9ZPqH0FVguMEmY4SCXvUJ2KzD/q8wv1n7+M=; b=toMO/6TX6C+81GYOteGsOg0IfUguN0LMHKgH76GtDmDDQ/hWLvmHWD2TvFxexmmXrz QSLYqP7o1wExMYP9kcUxYCbDGAXrGSEQP/EcIU7ooynVRjc7e7ttuNipaWzRLA5aEJJw P18JP75etVtN4MbdEQim6qJlTN2gY6dDB/NI2r6t3S3/nLbwS9gUnJzhAXQKf19RjzX7 3CEpaeyJaPF6zq1PR+wU0orgws8besustx48LUmhmqUuKs5U4YvekZyyvkFl5M1X3oQ8 enV5Wgd1TEsdCX3xJZM7hzmhPt7yRSws2RzoRA6kXyxUodcjk4XhQ9Atyl+OKAf7Qrpn IH1Q== ARC-Authentication-Results: i=1; mx.google.com; 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 d5si16388687pls.160.2022.02.01.12.51.59; Tue, 01 Feb 2022 12:52:11 -0800 (PST) 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; 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 S229545AbiAaV6K convert rfc822-to-8bit (ORCPT + 99 others); Mon, 31 Jan 2022 16:58:10 -0500 Received: from lithops.sigma-star.at ([195.201.40.130]:45648 "EHLO lithops.sigma-star.at" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229910AbiAaV56 (ORCPT ); Mon, 31 Jan 2022 16:57:58 -0500 Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id 45B4C613AFB8; Mon, 31 Jan 2022 22:57:50 +0100 (CET) Received: from lithops.sigma-star.at ([127.0.0.1]) by localhost (lithops.sigma-star.at [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id o4lbWBph2q_X; Mon, 31 Jan 2022 22:57:49 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id C6F40613AFB5; Mon, 31 Jan 2022 22:57:49 +0100 (CET) Received: from lithops.sigma-star.at ([127.0.0.1]) by localhost (lithops.sigma-star.at [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id u-Dkzr5wQ8LC; Mon, 31 Jan 2022 22:57:49 +0100 (CET) Received: from lithops.sigma-star.at (lithops.sigma-star.at [195.201.40.130]) by lithops.sigma-star.at (Postfix) with ESMTP id 7E092613AFBF; Mon, 31 Jan 2022 22:57:49 +0100 (CET) Date: Mon, 31 Jan 2022 22:57:49 +0100 (CET) From: Richard Weinberger To: bfields Cc: linux-nfs , luis turcitu , chris chilvers , david young , Daire Byrne , david oberhollenzer , david , goliath , trond myklebust , anna schumaker Message-ID: <53054937.5849.1643666269238.JavaMail.zimbra@nod.at> In-Reply-To: <20220131203742.GE30119@fieldses.org> References: <20220131104316.10357-1-richard@nod.at> <20220131170125.GB30119@fieldses.org> <8290532.5517.1643649341941.JavaMail.zimbra@nod.at> <20220131203742.GE30119@fieldses.org> Subject: Re: [RFC PATCH] mountd: export: Deal with NFS filesystems MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-Originating-IP: [195.201.40.130] X-Mailer: Zimbra 8.8.12_GA_3807 (ZimbraWebClient - FF96 (Linux)/8.8.12_GA_3809) Thread-Topic: mountd: export: Deal with NFS filesystems Thread-Index: 4FErjB2oqupkQfBZPJjydT926vM59g== Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org ----- Ursprüngliche Mail ----- > Von: "bfields" >> Unless I badly misunderstood the code it comes from fs/nfs/client.c's >> nfs_create_server() where the NFS client fetches NFS_ATTR_FATTR via getattr(). >> So it should be unique: >> https://datatracker.ietf.org/doc/html/rfc7530#section-5.8.1.9 > > Unique within one server, but not across different servers. > > Depending on how your servers assign fsids, collisions might be quite > likely. Results of a collision would be pretty bad. Hmm. So this means when you have a setup where the same file system is exported via multiple servers (the load balancing use case), getattr on the same file can report a different fsid at any time? This renders the fsid attribute close to useless :-( Anyway, this is not a show stopper just makes more clear that we should take the FSID_NUM mapping path. Please stay tuned, I'll send ASAP another patch. Thanks, //richard