Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp812129pxb; Thu, 17 Feb 2022 15:33:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJwRiTQAn8r9apVcaI+Igt9ZnpbNAG5XAaGKXrFteBJCFjXj6Ijp0J1O0myPB+ZNFEsjBiTL X-Received: by 2002:a63:790d:0:b0:373:cc0b:5b6a with SMTP id u13-20020a63790d000000b00373cc0b5b6amr1510158pgc.119.1645140817996; Thu, 17 Feb 2022 15:33:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645140817; cv=none; d=google.com; s=arc-20160816; b=qc1GdYkEa/UySlEqn9WkLl1xCsyCOzhIBAlr1L8nkCuxQcOhaIcHymCgdAJLgazyGj AZC/UDBOGq9sSD0bHfCOU66TaJLbcljHoLgi162p3OZ6+EDBXx+7rnZ5c8uq3gn9WGib 7PYLHxA1VfCrxZoJPZ/iS3iJMk3d2oq3w2WPMnX1D6758Dqcq8p3oXFipZmFx3myi5Ns trOpGehCykxRKnQLmYgFgGixXL/+u9p2BgnWm5hb/AgkPOg1E15Dva+7hSSVPnt+qbua i7Roo6P+OpFoCIadxg1gM1Z+HNmFvBxIbEbJAVenhF+diFgfisRHTh5fBneR9/iKgdSN g2Vw== 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=EIV6bSrUCovsJA7LLmLYBMGsYjZLrMe5hyXnYoy3tyk=; b=NUMdGaeMDyUGLydpuTxO/XsKprfhgEcNe8afPT30gul2fAdgTDl+X/GtNH4zZ89V7m kThyg/TqToliZAQJaNc1b3AvryRLqMd8GrvHjhxahKHOptl6G7Hm24DbmjkwqUsbM6F5 fHVB4bO5I/k48BhutmYCSKiTo0xodxSmjhxGIpc8sLIAew+ihl6US1Mh3O4sUzxNEq00 WhhNYBGEtqJUEG8Y8QW3eVKe8N3wfx5goRdyQx2KBZq55F9ZOQdVBO55nHbct5a/XS2n EdXxYFG0q78nS6SA+bZrldwWqerQuU9jAPoAua8IISincaQ8nfE5/7WHuS0+i2qruRJY /MkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b=nhL+JnME; spf=softfail (google.com: domain of transitioning linux-nfs-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id p27si9628277pgb.407.2022.02.17.15.33.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Feb 2022 15:33:37 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-nfs-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b=nhL+JnME; spf=softfail (google.com: domain of transitioning linux-nfs-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8AD79272DBF; Thu, 17 Feb 2022 15:13:34 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241812AbiBQUSV (ORCPT + 99 others); Thu, 17 Feb 2022 15:18:21 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:44424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231553AbiBQUSV (ORCPT ); Thu, 17 Feb 2022 15:18:21 -0500 Received: from fieldses.org (fieldses.org [IPv6:2600:3c00:e000:2f7::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4DAFA5D189 for ; Thu, 17 Feb 2022 12:18:06 -0800 (PST) Received: by fieldses.org (Postfix, from userid 2815) id 9FC496CD5; Thu, 17 Feb 2022 15:18:05 -0500 (EST) DKIM-Filter: OpenDKIM Filter v2.11.0 fieldses.org 9FC496CD5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fieldses.org; s=default; t=1645129085; bh=EIV6bSrUCovsJA7LLmLYBMGsYjZLrMe5hyXnYoy3tyk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=nhL+JnMEm+3c+5wdJk8yZZFVef3gYfW6Rwnptcu+F2xgd5EOYD9ZG8+K4rWh0x8Xe JzmUCpl7xZGs2j+hEYzLB0iej929f5+OcWDKCWj6iVctsGvFIB8T4FdrU6y9wA62vu 8kdWIL+ixa7+sBYBdTok5JIViyPIegOJidCCwfpU= Date: Thu, 17 Feb 2022 15:18:05 -0500 From: bfields To: Richard Weinberger Cc: linux-nfs , david , luis turcitu , david young , david oberhollenzer , trond myklebust , anna schumaker , chris chilvers Subject: Re: [RFC PATCH 0/6] nfs-utils: Improving NFS re-exports Message-ID: <20220217201805.GC16497@fieldses.org> References: <20220217131531.2890-1-richard@nod.at> <20220217163332.GA16497@fieldses.org> <1525788049.60261.1645118835162.JavaMail.zimbra@nod.at> <20220217192726.GB16497@fieldses.org> <245552734.60874.1645128938141.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: <245552734.60874.1645128938141.JavaMail.zimbra@nod.at> User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Thu, Feb 17, 2022 at 09:15:38PM +0100, Richard Weinberger wrote: > ----- Ursprüngliche Mail ----- > > Von: "bfields" > >> Which one do you prefer? > >> "predefined-fsidnum" should be the safest one to start. > > > > I don't know! I'll have to do some more reading and think about it. > > No need to worry, take your time. > > >> > Setting the timeout to 0 doesn't help with re-export server reboots. > >> > After a reboot is another case where we could end up in a situation > >> > where a client hands us a filehandle for a filesystem that isn't mounted > >> > yet. > >> > > >> > I think you want to keep a path with each entry in the database. When > >> > mountd gets a request for a filesystem it hasn't seen before, it stats > >> > that path, which should trigger the automounts. > >> > >> I have implemented that already. This feature is part of this series. :-) > > > > Oh, good, got it. It'll take me some time to catch up. > > The reason why setting the timeout to 0 is still needed is because > when mountd uncovers a subvolume but no client uses it a filehandle, > it is not locked and can be unmounted later. > Only when nfsd sees a matching filehandle the reference counter will > be increased and umounting is no longer possible. I understand that. But, then if a client comes in with a matching filehandle, mountd should be able to look up the filesystem and trigger a new mount, right? I can imagine that setting the timeout to 0 might be an optimization, but I'm not seeing why it's required for correct behavior. --b.