Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp1203161rdh; Fri, 27 Oct 2023 07:32:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHd0hMUjiNjjdqOuETXw3F7vcKMtY6XKo/s0G7jnRMf3rA1DNeb875GXBo0tmefLyACJdxd X-Received: by 2002:a05:6102:7d8:b0:45b:11de:9449 with SMTP id y24-20020a05610207d800b0045b11de9449mr3015512vsg.0.1698417174768; Fri, 27 Oct 2023 07:32:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698417174; cv=none; d=google.com; s=arc-20160816; b=pdkzldUUoIwt6lAASzuGY5NY1Z3cMFu9Kv8jLuSIQ+QZ8dL65R66OlnfEch4cU0uhK fiBQ0LtnT9EGXmM8+nA+Y3MIKcN+5RLS2QqtAocbuJgV4uah0Ey5LB0HwIDHs9KGzB2R dPzpxv/ysZfKDghJr6c4kRv8TTwO4E5TlAZAP9Lpl5Ouvowk0CkLjt+CPz7r2zhCc+0d 4qD3h8CEV6V56WOeqztQ0VErl8Ek331tWZXJMgQ+tHwRXt3xXfsmyKVk3kuzCJsScjP7 frQBHgYhiEGRgFRhxGyRjazxDYHHD9i10Nda7ICy8JbnhVuv/Te/4KWPEp5gtp9ytVQP mbfA== 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=ucqkuIBSI4Oih9/44MO7AKh+wvjUqOxO46lZskIRSyQ=; fh=UG8b/PANMXTwmCxuWjg9QewdRt0gHCRmMXBAHyra5S8=; b=u0qCbIVo9s0seriXJjAp1Bx2/IlfyHzA1fIZGbvxdTk8ZSpQvIHwhyc2Z1JA482L85 UODPHD9BItuRfIuWUd+wwquw2Rlqb4LPkusuFHl1dnu7k4HOPNAAejp9xBON+h1+xgyK utqYbJBPBnQVgGzoa6nqtYdS4ik4ZiyOvhOMrCD+AJK19E9jZhzqwAlUI4SSZU1SPM/8 SwjkH/1ATofuDYLo7jdPMANWAR4G8Nw/LxNOX1yAw5obT3i7ilreeTaOvtINd7BJsZ1w bOb4cubOgnENl5tLIOUQLbE2zh1Dy8H67U8XW5MUuvaMtHqs1WWCscSYe/TarIpCLfUV 4H8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=IgmnEPOI; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id y26-20020a05610230ba00b00452513d6493si228467vsd.620.2023.10.27.07.32.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 07:32:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=IgmnEPOI; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (Postfix) with ESMTP id 2849085202E7; Fri, 27 Oct 2023 07:32:49 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345952AbjJ0Oct (ORCPT + 99 others); Fri, 27 Oct 2023 10:32:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46734 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345900AbjJ0Ocs (ORCPT ); Fri, 27 Oct 2023 10:32:48 -0400 Received: from mail-qt1-x82f.google.com (mail-qt1-x82f.google.com [IPv6:2607:f8b0:4864:20::82f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 939DEC0; Fri, 27 Oct 2023 07:32:46 -0700 (PDT) Received: by mail-qt1-x82f.google.com with SMTP id d75a77b69052e-41cc56255e3so13498971cf.3; Fri, 27 Oct 2023 07:32:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698417165; x=1699021965; 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=ucqkuIBSI4Oih9/44MO7AKh+wvjUqOxO46lZskIRSyQ=; b=IgmnEPOIve4d3CuGRGbPjO3dl/QOuNG5PkJIW+UgZV3wVkiYneGlit4rIuJZySecid KOGGtLUUlcCmxL612mVvvx08TziFHJ1H5aQXMNp7uJx0cOusgIjWg8UEKFSfVBB+zQqW lkd+t1Rgr0e6NpeQbi+nLuYUntd1BSU2S2rPo1TCTqlUg16aZJfqJrpaomzGHavsaIgB FOUwVw/Fc61tz304L4rBk4QBOjGB6eu1XIKnlMyGZ2+j842dcOvTtvcFKrbHSbBHUkSz SEn3Jv4lhZg3auUJm6zptlKSL2arw0OdVWxJawEGP05jK4SBPiYdk/TWu9o4UTDQkLU5 IJJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698417165; x=1699021965; 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=ucqkuIBSI4Oih9/44MO7AKh+wvjUqOxO46lZskIRSyQ=; b=I5Y1PRScw1FLutLPNTY8ZcKOzTg3KCZ+VsI3RRmIuJ2umhF99d/mTDpVpOZg5kTONi 1ytLtP0FvQdoBzOLHqGToepCeUYoWAn7gvyJk1rtLmjAIMp9B/iXq+Obzy87/SdKHW3X syZsguzCYh2yKMA78kee0NK7vjU0mirvPPAAV4Ab4o182like/E5iKW+Pl0IWYrY8vHN 2LpRXUjBpi2hBp4cZlrAmOONtlaEL9Q2/HUP4rRHidPEJN7jLXgBBYZwgrn8l3Zvf0Wp nTlfxZPymwWnE52x1bKA4TXjJZTmZiYj69IH3CcQLDtKzGtDs61KefISnH7bp/c2+4Cx WZCA== X-Gm-Message-State: AOJu0YwSfcAdGubSu/5dXNyGpHnGHZW4jBi2MPv2FnT3hwxH5yvZtCBy t/tAmysNv28FIWCxkqHg2sPu3ooLQHQm1e4V+aA= X-Received: by 2002:ad4:5ecd:0:b0:66d:28b3:798 with SMTP id jm13-20020ad45ecd000000b0066d28b30798mr2972775qvb.10.1698417165677; Fri, 27 Oct 2023 07:32:45 -0700 (PDT) MIME-Version: 1.0 References: <20231023180801.2953446-1-amir73il@gmail.com> <20231023180801.2953446-3-amir73il@gmail.com> In-Reply-To: From: Amir Goldstein Date: Fri, 27 Oct 2023 17:32:34 +0300 Message-ID: Subject: Re: [PATCH v2 2/4] exportfs: make ->encode_fh() a mandatory method for NFS export To: Christoph Hellwig Cc: Christian Brauner , Al Viro , Jan Kara , Jeff Layton , Chuck Lever , 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 , Dave Kleikamp , 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 pete.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 (pete.vger.email [0.0.0.0]); Fri, 27 Oct 2023 07:32:49 -0700 (PDT) On Fri, Oct 27, 2023 at 10:09=E2=80=AFAM Amir Goldstein wrote: > > On Fri, Oct 27, 2023 at 9:03=E2=80=AFAM Christoph Hellwig wrote: > > > > On Mon, Oct 23, 2023 at 09:07:59PM +0300, Amir Goldstein wrote: > > > export_operations ->encode_fh() no longer has a default implementatio= n to > > > encode FILEID_INO32_GEN* file handles. > > > > This statement reads like a factual statement about the current tree. > > I'd suggest rewording it to make clear that you are changing the > > behavior so that the defaul goes away, and I'd also suggest to move > > it after the next paragraph. > > Ok. will send v3 with those changes. > Actually, Christian, since you already picked up the build fix and MAINTAINERS patch, cloud I bother you to fixup the commit message of this patch according to Christoph's request: exportfs: make ->encode_fh() a mandatory method for NFS export 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. After this change, exportfs_encode_inode_fh() no longer has a default implementation to encode FILEID_INO32_GEN* file handles. This is a step towards allowing filesystems to encode non-decodeable fi= le handles for fanotify without having to implement any export_operations. Might as well add hch RVB on patch #1 while at it. Thanks, Amir.