Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp903240pxb; Tue, 1 Feb 2022 12:49:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJztN/RVaiEo3Cszr8sC6qWsmOXNp40ECJu9PJ6kt1CiqHBE6c8vD/VWE5kajrvxIpX9EVS0 X-Received: by 2002:a17:90b:314c:: with SMTP id ip12mr4267672pjb.191.1643748587065; Tue, 01 Feb 2022 12:49:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643748587; cv=none; d=google.com; s=arc-20160816; b=AaVgtzNF/RoLFR6XBJ2Yz24YppJLm5m98g4lohdN8IUBcd7k2xFYx7dEgyZ6yIvxn+ VAV7xcjXqXMFFvJUucdga6RvOVQm/PrNs09xDEaiRoIwKhyuk/hPCMBVhua021ijZ+cn 2zQZZXxhpY23it+IbX4tTALH16JKpSdu9czZ3+t0Y0HixAGzxPZt4l6vehU/fsGqi5yj O6/3vFozW1XC3S099NEWlcIy+BrT97tBGzntkNqY3WaNqwI+9F+vHQpJ8M/1bngePpzr GNP5aCqNXdVED60b+yKKDjqaGtRQE9nsaJe+abM1FWtZmqbcVuRTk5WtgskimjgHNX8i GwZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:dkim-filter; bh=uJfpAwjM5tou7NFmBbnDWYY7q+KJ90NYOs82VENLpwY=; b=wJeqJxIApqWoHcsqf3jr4L281ubIE47dRtvvlZyl8nkr6mBBdYEG65GaGF4mlIvUr3 qixYZJztpSx7id3+fw7ZgcnIItJdpeOP4hQydIm2N/Kcr3bjCwYZWMjFzwPFFlcYvdGS B6S0PddNZEI4f7IqKrXN4Ok32AHWNE4h8iSalDMRRItjs+SxvcphjM8Y8rPWcGBgMKUc l3sZEoHISkmy3AH+JNwBn4trj9G7nrh50Yc32Szw0zW4eDmdkHlvQeeIG8rkme7AyVEF 8Wmio6WOm6/HMysxb/PztRtCEa6EotwjDNyx2d2U4Ssy12TuUyvm6sPCwpKXwosBhH3n Fl1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b=EFKiskf1; 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 t2si16539222plg.360.2022.02.01.12.49.34; Tue, 01 Feb 2022 12:49:46 -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; dkim=pass header.i=@fieldses.org header.s=default header.b=EFKiskf1; 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 S1379337AbiAaUhx (ORCPT + 99 others); Mon, 31 Jan 2022 15:37:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37352 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350773AbiAaUho (ORCPT ); Mon, 31 Jan 2022 15:37:44 -0500 Received: from fieldses.org (fieldses.org [IPv6:2600:3c00:e000:2f7::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C4CF5C061714 for ; Mon, 31 Jan 2022 12:37:43 -0800 (PST) Received: by fieldses.org (Postfix, from userid 2815) id 3D77414DC; Mon, 31 Jan 2022 15:37:42 -0500 (EST) DKIM-Filter: OpenDKIM Filter v2.11.0 fieldses.org 3D77414DC DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fieldses.org; s=default; t=1643661462; bh=uJfpAwjM5tou7NFmBbnDWYY7q+KJ90NYOs82VENLpwY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=EFKiskf1UL95uVa/QLy4S2Zjzpu6LZJ0k4ak6aoJuXIYisYrenuIxTIdsvtSUnocN K1iomOZ/aeisBTuoxWSqe9Y6EsEhcCRLbAP5/YTVu/aWfsIquNg887Z6CfHk7+6oIN YCkOj7tkcs0EqRAUZ1PI8iF6jeGu5/xO7KMlwmH0= Date: Mon, 31 Jan 2022 15:37:42 -0500 From: bfields To: Richard Weinberger Cc: linux-nfs , luis turcitu , chris chilvers , david young , Daire Byrne , david oberhollenzer , david , goliath@sigma-star.at, trond myklebust , anna schumaker Subject: Re: [RFC PATCH] mountd: export: Deal with NFS filesystems Message-ID: <20220131203742.GE30119@fieldses.org> References: <20220131104316.10357-1-richard@nod.at> <20220131170125.GB30119@fieldses.org> <8290532.5517.1643649341941.JavaMail.zimbra@nod.at> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <8290532.5517.1643649341941.JavaMail.zimbra@nod.at> User-Agent: Mutt/1.5.21 (2010-09-15) Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Mon, Jan 31, 2022 at 06:15:41PM +0100, Richard Weinberger wrote: > ----- 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 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. --b.