Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3875085rdg; Wed, 18 Oct 2023 08:24:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHaOOOa83WtZJEa1gvqkY5AYAlTB656Xfp/KCrmEatmzX942I5TBToiWNmZK44yQ2/CYcn0 X-Received: by 2002:a05:6870:110f:b0:1e9:a248:b1b3 with SMTP id 15-20020a056870110f00b001e9a248b1b3mr4699442oaf.49.1697642675266; Wed, 18 Oct 2023 08:24:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697642675; cv=none; d=google.com; s=arc-20160816; b=WeJRTCp1zf5sW/x05C0lECrxe5M0rjSQUXYJIKHRO/1qJ2yuxlH7buefGTphHCwnOV EjvB/eNNDWe6iCVdlWeny1T60EuT/muOFjHJiuw4QpltAAh7/FeQmkuzBzPjKYtwWnsX mkaccXFpxSck5Laat69j1IQH5gqhns3JzNilOHyDkEKZ7NUrFor1OxvV9ty/nYer1RYb A66RiWswNbz1+YBM5iik8l1nS0HEdva/+y7FZvLDdwxtKd1aMOUEu8jATmNYBtoTS9VZ o64hJYWComKujxtr7AWA8f1cmubLKXvCjZxrF3JkdEY35Vdoabsv51LwGRYQeejJkELo gp5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=deVo9qsmLU9IzO8fZiwxHWP5rj9qLKYcMtfG735bfDs=; fh=BDpJBIXBg4SDrIFHDdaddpZhvL/9NJ9c1uelwi8Q/0o=; b=qaTKbKkqYX8IKJWTUNOvbfE2kuRbYTnEMgw0jXb9/ilx8UG8n8OM1cc+1sDvZQtdSt GLHQy6+EdP2fbK0kHdNZX66h5kG5RKz0fpQ+oDkEozPXVmJR1du+OpXkvo1AHMlk1/s4 Y5n4WoMcoxgdG3PTS6llKvarqYTZGTHJFLcLeADWwvUk+JAgG+zaTwLGt/hxT7+8ukWn LiVeV5UZ4LSgJrHheYPsROFKOjRYIPK1oIloBF4uQzc+JFWPB32hNggJKCOKZrCbtefB Zay4QRnk4QvvKhTWZYbzAzI9dBB58B/dLkmtuGNYdvaM1/7vCxX+mjt5QVfXypKORncV IJDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=eQ7reMol; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id g71-20020a636b4a000000b0059df1860d60si2254973pgc.424.2023.10.18.08.24.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 08:24:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=eQ7reMol; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id D551380FF015; Wed, 18 Oct 2023 08:24:25 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231193AbjJRPYZ (ORCPT + 99 others); Wed, 18 Oct 2023 11:24:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230391AbjJRPYZ (ORCPT ); Wed, 18 Oct 2023 11:24:25 -0400 Received: from mail-qv1-xf2e.google.com (mail-qv1-xf2e.google.com [IPv6:2607:f8b0:4864:20::f2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A57C194; Wed, 18 Oct 2023 08:24:23 -0700 (PDT) Received: by mail-qv1-xf2e.google.com with SMTP id 6a1803df08f44-66d264e67d8so29394306d6.1; Wed, 18 Oct 2023 08:24:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697642663; x=1698247463; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=deVo9qsmLU9IzO8fZiwxHWP5rj9qLKYcMtfG735bfDs=; b=eQ7reMolXvE1Dfvz2JTMzh8AQMDCznIozMIWfyifPUTxGg+5Hw/JbrcVZup4zkO4Li /3s3sx0ij6nqYe8MurikSvJAnamfZYPl4dlSS7/wrla9sshxKmj2li7EboLaZxhxpMd2 9SHsDaJsd/cdc00DZbe+GOgyUqokNgje1y3p2haIewJJVgrD6QiVN4daalEh1CxqL9Ch u++JB4/Ps4UWn1f2AY58m/O2DwvCQ0LE8RAEFMOXMAvc64mVCkLufpVBZP0Pg3h7EeB4 ChCyk+dzP/sFznUu99Rl2WsL9T6augpP3aeoy0Ra4NlCYgO/+2LKXnHyM9H/kjxmbthw Sfqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697642663; x=1698247463; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=deVo9qsmLU9IzO8fZiwxHWP5rj9qLKYcMtfG735bfDs=; b=dEKnc1iIQxnv0SL53oD+YHGBunS7uYArMNzHg62QrLfCOqEEOS2nuBrFAnK3exG4hn 5f7o1dMCrGLqLQvjG0dy2eBXEyhqvQ2RogICEnubHMIY/B0ChZVPA/1ltK8+VQ9qHJ+D GxNrxilo4gLdV6dT2caRI0Lx/Pa+RAG0f+KkdM+Lqvp/VUfqILkguCkg10kAnmaCT9gs q3he22dgsYC1qLwV3mWWT4Oeuu/0+7x8Rskz8pPS5WYUCQHKlhxr/iBQXSniLrlua4ES M9GHFZheHja1E4v51uKcxWizSfis377Wey+947hpjnOTLPLvmelzMw1xT19KNg9O4MOc 9z3g== X-Gm-Message-State: AOJu0Yyy29zGaAzEIHmiIZ/ENI/gyPousS5Xq+UShVvE4F9qB06OdX06 HZwx7PADHBZDnhdiDAdBqtp9qNKsdbmeYddIL6A= X-Received: by 2002:a05:6214:5089:b0:66d:f75:bd1a with SMTP id kk9-20020a056214508900b0066d0f75bd1amr5037178qvb.65.1697642662696; Wed, 18 Oct 2023 08:24:22 -0700 (PDT) MIME-Version: 1.0 References: <20231018100000.2453965-1-amir73il@gmail.com> <20231018100000.2453965-4-amir73il@gmail.com> In-Reply-To: From: Amir Goldstein Date: Wed, 18 Oct 2023 18:24:11 +0300 Message-ID: Subject: Re: [PATCH 3/5] exportfs: make ->encode_fh() a mandatory method for NFS export To: Dave Kleikamp Cc: Jeff Layton , Jan Kara , Chuck Lever , Christian Brauner , linux-fsdevel@vger.kernel.org, linux-nfs@vger.kernel.org, David Sterba , Luis de Bethencourt , Salah Triki , Gao Xiang , Chao Yu , "Theodore Ts'o" , Andreas Dilger , Jaegeuk Kim , OGAWA Hirofumi , David Woodhouse , Richard Weinberger , Anton Altaparmakov , Konstantin Komarov , Steve French , Phillip Lougher , Evgeniy Dushistov Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Wed, 18 Oct 2023 08:24:26 -0700 (PDT) On Wed, Oct 18, 2023 at 5:53=E2=80=AFPM Dave Kleikamp wrote: > > On 10/18/23 9:16AM, Jeff Layton wrote: > > On Wed, 2023-10-18 at 12:59 +0300, Amir Goldstein wrote: > >> export_operations ->encode_fh() no longer has a default implementation= to > >> encode FILEID_INO32_GEN* file handles. > >> > >> Rename the default helper for encoding FILEID_INO32_GEN* file handles = to > >> generic_encode_ino32_fh() and convert the filesystems that used the > >> default implementation to use the generic helper explicitly. > > Isn't it possible for some of these filesystems to be compiled without > CONFIG_EXPORTFS set? Should exportfs.h define an null > generic_encode_ino32_fh() in that case? > Yes, good idea! Thanks, Amir.