Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp17196pxj; Wed, 12 May 2021 21:08:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxIIis0rlAlEZ6hoyBhQo8EoeO3kAZt1ltQ5hAKc6mKN4e04s4XWzElipp8aduIZZosI/GA X-Received: by 2002:a17:906:4795:: with SMTP id cw21mr40698667ejc.304.1620878890675; Wed, 12 May 2021 21:08:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620878890; cv=none; d=google.com; s=arc-20160816; b=g9YNQEsF7RN65el61PmKHukej8ZNhSr/qDFbCkEs1n6/pUrntQ2B6BNv8gKWDTvV5b +PZG2Eaj4nLcBI0M69nnJgLWtGf2yCIRDSBRR/J63VssWev1lhxhme4oHzy6sqLr1LSU HygBm3ElAaMzMtclUy+0xYHaQDZKIKXBKi6ESF6c2DTzVtIw/aDhVGEoGstDKok3WvjS jqG8suUaszUveo/ueqZwowWiyq5b1Q+fc6NU0zM1g/XA4XHQiq9qIIzUw8F+lpYMsJyw W8nU+VXTPqyjS+5y/5mcGd8ASCGDb0evP7QpvyIA4O0R+xWL3j68C/3gEtIHprd6yvbu +Ltw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:references:in-reply-to:subject :cc:to:from:mime-version:content-transfer-encoding; bh=RDnvm8e7JLlq6jgekShqAUIdzzY7XNzV6vgsrUs+S38=; b=tRYYwgVuOahSLLzD8sdxQ+thN31wYU8jY8js7THvXJvLmvOEphz4Tysn8ncEdD0umV 7TgcMkexrmzuk6Y35EohG2XkKtvEg/AxrLcyvhhr4PQNQsB9XfcwYqeMvJzh/Hv5LkZn Uhc9BVoc6OH+/KbOjI/qY1TRzCUYo1StzrG4QBj9bxPGqWBkvkiu6Hc+wzxDmKiFh7QN 67UawZtg23MIZJQL/vFjpL4QHchyBYf9D1WU1PMYEOWYo8vl1OWZksRkwwXTRIAeQbtH NoBwd7RnYYVrdarl9eKqAZzsCSKUEV5n6OqzB0KAjefxOj37Rq/q4YCkvX66Y8zq72ru 4SJA== 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 b14si1751066ede.509.2021.05.12.21.07.33; Wed, 12 May 2021 21:08:10 -0700 (PDT) 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 S229525AbhEMEId convert rfc822-to-8bit (ORCPT + 99 others); Thu, 13 May 2021 00:08:33 -0400 Received: from mx2.suse.de ([195.135.220.15]:33524 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229485AbhEMEId (ORCPT ); Thu, 13 May 2021 00:08:33 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id EC80BAFCC; Thu, 13 May 2021 04:07:22 +0000 (UTC) Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 From: "NeilBrown" To: "Petr Vorel" Cc: "J . Bruce Fields" , linux-nfs@vger.kernel.org, "Steve Dickson" , "Chuck Lever" , "Alexey Kodanev" Subject: Re: Re: [PATCH/RFC nfs-utils] Fix NFSv4 export of tmpfs filesystems. In-reply-to: References: <20210422191803.31511-1-pvorel@suse.cz>, <20210422202334.GB25415@fieldses.org>, , <162035212343.24322.12361160756597283121@noble.neil.brown.name>, Date: Thu, 13 May 2021 14:07:21 +1000 Message-id: <162087884172.5576.348023037121213464@noble.neil.brown.name> Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Fri, 07 May 2021, Petr Vorel wrote: > Hi Neil, > > > [[This is a proposed fix. It seems to work. I'd like > > some review comments before it is committed. > > Petr: it would be great if you could test it to confirm > > it actually works in your case. > > ]] > Thanks for a quick fix. It runs nicely in newer kernels (5.11.12-1-default > openSUSE and 5.10.0-6-amd64 Debian). But it somehow fails on older ones > (SLES 5.3.18-54-default heavily patched and 4.9.0-11-amd64). > > I have some problem on Debian with 4.9.0-11-amd64 fails on both tmpfs and ext4, > others work fine (testing tmpfs, btrfs and ext4). But maybe I did something > wrong during testing. I did: > cp ./utils/mountd/mountd /usr/sbin/rpc.mountd > systemctl restart nfs-mountd.service That is the correct procedure. It should work... > > Failure is regardless I use new mount.nfs (master) or the original from > Debian (1.3.3). What error message do you get on failure? It might help to add "-v" to the mount command to see more messages. > > strace looks nearly the same on tmpfs and ext4: This shows mount.nfs connecting to rpcbind, sending a request, getting a reply, and maybe looping around and trying again? There doesn't seem to be anything kernel related that would affect anything there so I cannot think why on older kernel would make a difference. Or an older rpcbind... Maybe I'll experiment on a SLE12 kernel. NeilBrown