From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F3506C433EF for ; Mon, 31 Jan 2022 17:15:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350147AbiAaRP5 convert rfc822-to-8bit (ORCPT ); Mon, 31 Jan 2022 12:15:57 -0500 Received: from lithops.sigma-star.at ([195.201.40.130]:55332 "EHLO lithops.sigma-star.at" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1380916AbiAaRPo (ORCPT ); Mon, 31 Jan 2022 12:15:44 -0500 Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id AD833614E2EF; Mon, 31 Jan 2022 18:15:42 +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 XrHhFDB2UMM4; Mon, 31 Jan 2022 18:15:42 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id 399A4614E2E7; Mon, 31 Jan 2022 18:15:42 +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 SpKRC8uaALOC; Mon, 31 Jan 2022 18:15:42 +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 0E30562DA60B; Mon, 31 Jan 2022 18:15:42 +0100 (CET) Date: Mon, 31 Jan 2022 18:15:41 +0100 (CET) From: Richard Weinberger To: bfields Cc: linux-nfs , luis turcitu , chris chilvers , david young , Daire Byrne , david oberhollenzer , david , goliath@sigma-star.at, trond myklebust , anna schumaker Message-ID: <8290532.5517.1643649341941.JavaMail.zimbra@nod.at> In-Reply-To: <20220131170125.GB30119@fieldses.org> References: <20220131104316.10357-1-richard@nod.at> <20220131170125.GB30119@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: eGwBPcjwbjFcFsSRyWvmeclhKZZ6PQ== Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org ----- Ursprüngliche Mail ----- > Von: "bfields" >> Using /proc/fs/nfsfs/volumes it is possible to find the NFS fsid >> from the backend and use it as seed for mountd's UUID mechanism. > > Sorry, I haven't checked--what is that number, really? It's probably > not the fsid returned from the server, as that wouldn't be guaranteed > unique across multiple servers. But that means it's probably generated > in a way that doesn't guarantee it's stable across reboots. And we need > filehandles to work across reboots. 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 Thanks, //richard