Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3565754pxb; Mon, 16 Nov 2020 19:27:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJx4/ifqpgWyJ9AnksPArmcIZy7BX36uDEekqTPwvt5U61BPJ58Gy+JnsZMV9GIbz83fKnfs X-Received: by 2002:a50:cf82:: with SMTP id h2mr18731306edk.142.1605583629702; Mon, 16 Nov 2020 19:27:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605583629; cv=none; d=google.com; s=arc-20160816; b=hrHv3TV4VowSsbeztvnfmLgadaPEGrmrCPkUKePkt28YTJYUjkGF2BADrS+ojlV3Uc u7noQQn3TitKdLR67zyTZ/riyvmV/viLyjAs1gj/vm6eDDA0Ls02R59idS993N30jcVe 6K2hz7fYuSsLkrhXX+7PTRzY8LFFnRJ563+4bsy0XMTmLA5yq7HvlLgixteFbbXWa7Cw E1b8qtHJDaRcHcR22I0tYRnsryvA5XMBqZC3qR9jJolNcGg5j86cpIeXF6Gy+Oa18u/C 3g9xWsmrWnsHZsPipECsMcbDDdesBcWmE8CFCGqHyBdu6rLOuT8CKF0R/SFnJfYDQaL4 /LWg== 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-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-filter; bh=D2jNETWSFuPlafNmnOgOiUVi8uS32omeIyXC3EjwZ4M=; b=U1RRp4tIQ2T3nxcudQNqHPqeFyEuC9OmUM7cIS+5jz3YXM3kANs25aDAupX8Pnfwwg UaR4RY2B6IcHSDb203znEK7dg9X7NG1A7EeFEoRmH9rj/rkPTjbfCr+DemWzSYyO5Ums gRPcLE5TGJzpniT+Dq6DO1lmkzITUayGb6Fip0uXXeB3vodI9bhWKt4ELtEuQ+lvHdPF obWBeJj0KnNeNQ8Psz6ejgJx6KcnFByjOdA7fyWYT/MuLQ3+8THm+L/tEgpQk1Qb6t8S 48GNcxxUhxbs/UYGRQF23WgbGCQIVbROGl5vAJM4euySjQNWAuKEYEP30ATE8NzAl7A4 auAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b="CGH2P/vo"; 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 27si13534306edw.379.2020.11.16.19.26.47; Mon, 16 Nov 2020 19:27:09 -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="CGH2P/vo"; 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 S1725994AbgKQDQD (ORCPT + 99 others); Mon, 16 Nov 2020 22:16:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50938 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725804AbgKQDQC (ORCPT ); Mon, 16 Nov 2020 22:16:02 -0500 Received: from fieldses.org (fieldses.org [IPv6:2600:3c00:e000:2f7::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A81EEC0613CF for ; Mon, 16 Nov 2020 19:16:02 -0800 (PST) Received: by fieldses.org (Postfix, from userid 2815) id 77B151C29; Mon, 16 Nov 2020 22:16:01 -0500 (EST) DKIM-Filter: OpenDKIM Filter v2.11.0 fieldses.org 77B151C29 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fieldses.org; s=default; t=1605582961; bh=D2jNETWSFuPlafNmnOgOiUVi8uS32omeIyXC3EjwZ4M=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=CGH2P/voMOZqLry8hvHXMdSvfGrO8DRqj9l/duJ4trIwkAOMeU3uDRAIyyovUv/Pn s9jp1lA8w4uc7qVE3YQ3G17S1gYVyW2nP+YHjaqLDbz5JHeIMqYUQhCqBQTSDYcvSn bNXQ5AeBhoSGMXOqHFsB0P8/a/YwX4uJdYdkStJQ= Date: Mon, 16 Nov 2020 22:16:01 -0500 From: bfields To: Jeff Layton Cc: Daire Byrne , Trond Myklebust , linux-cachefs , linux-nfs Subject: Re: Adventures in NFS re-exporting Message-ID: <20201117031601.GB10526@fieldses.org> References: <883314904.86570901.1605222357023.JavaMail.zimbra@dneg.com> <20201113145050.GB1299@fieldses.org> <20201113222600.GC1299@fieldses.org> <20201116155619.GF898@fieldses.org> <83ebb6dc68216ce3f3dfd2a2736b7a301550efc5.camel@kernel.org> <20201116161407.GG898@fieldses.org> <20201116190336.GH898@fieldses.org> <0047077b3bd79a96589626ba154e6d9e95a35478.camel@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0047077b3bd79a96589626ba154e6d9e95a35478.camel@kernel.org> User-Agent: Mutt/1.5.21 (2010-09-15) Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Mon, Nov 16, 2020 at 03:03:15PM -0500, Jeff Layton wrote: > Another idea might be to add a new fetch_iversion export operation that > returns a u64. Roll two generic functions -- one to handle the > xfs/ext4/btrfs case and another for the NFS/AFS/Ceph case (where we just > fetch it raw). When the op is a NULL pointer, treat it like the > !IS_I_VERSION case today. OK, a rough attempt follows, mostly untested.--b.