Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp399841rdb; Thu, 19 Oct 2023 07:41:44 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF3gwiAf1g9vgMfhH/kAzlzXLLpeyBbwJl35z4K+yF8JBx16dBqJVJ4a7065l298z9/i1Jm X-Received: by 2002:a05:6a20:3d11:b0:171:a8bc:74b2 with SMTP id y17-20020a056a203d1100b00171a8bc74b2mr2416740pzi.7.1697726503862; Thu, 19 Oct 2023 07:41:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697726503; cv=none; d=google.com; s=arc-20160816; b=QhkcpiaXWKLNNNg3C0a9Y+jCEMm+spSS5K5sA4xmpZaFvZ0/tK1NRsJi3e9M4bZoT0 5IMznzX4z4X7d2dneuYWn6d1CNOqZWjct6s+jA5DFaq0cZbTuHuHvOv91nByVFIFKACO U+hY4JHiRNmUk3UQcJvzu431jzc283GwUF1A16BFtYm1jRu7ofnIdinqsX18ywNz2V0W Aoqa9otNzsWOGkFMCskxONKb+5lr8kGJX8rxf7X4tePswn3OiDZdEt2muyKiTsbCb8ul tFinGMe4IXI9Kz+t1b4YNwBSmuMz+fPUQdUGeJ0ompdF/vMnydkvEu1KI+y4P3GZqAXh 1C6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=7yWQ++yj3meNsM51OVma38ZOF7XpIW69AOySyO8IM0Y=; fh=2+TYS63/hOt3K9zSZHkOsC93xNmzx93LkLw06+XWVZQ=; b=kvlPHXJxp0jGEIMgUoAvVW5fg0929ClclB3RbDlTvrxgFSN/WH2BbpQQqC/wDZFZPb dY0Ps2APi2L0jtmu7uJVP+JPpIvw6XKbwbUYc0lj4yFlCfAj2Gt2oBWnMcilaCabCgrJ DucA+UX1T6R7Z18IuY30b0+hN/Hwvw9zDfQHhtE0JEtN4ZjK1lX3pvgVpm3W16OEMImB +inLCDjdhm00G7cfOocVSrlZ8eV0xdGzclB0vloP3AwGa8JStuOphZUmO1VkkX39/G2I fjMaYNpuUW62b/AUZHc/596Pu2u98JsKiIpwNobfyl3vsBXtKFXy/V7YopyzvKiSs+sd w3+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=vtKaJo3f; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=7AlKnQYe; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id z16-20020a170903019000b001c9b20887afsi2441901plg.431.2023.10.19.07.41.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 07:41:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=vtKaJo3f; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=7AlKnQYe; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 9B3028135CE6; Thu, 19 Oct 2023 07:41:02 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346149AbjJSOkn (ORCPT + 99 others); Thu, 19 Oct 2023 10:40:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56128 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346158AbjJSOki (ORCPT ); Thu, 19 Oct 2023 10:40:38 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A551118A; Thu, 19 Oct 2023 07:40:31 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 45432210EA; Thu, 19 Oct 2023 14:40:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1697726427; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=7yWQ++yj3meNsM51OVma38ZOF7XpIW69AOySyO8IM0Y=; b=vtKaJo3fU0v4xPgYDe3J7ys1BQREGEf71+ieyhVmED1/RjuNNKtJulS7OGBBisg5hLbKwy ZA0lthUkbKlF65yIKXvYhAqD/0M49B1onOR1kCl/q+smWRojv6bwQI9NykPnt0qt+Abxgl n1NhmednkL6THWFZsZHk4sG9dhtqIcA= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1697726427; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=7yWQ++yj3meNsM51OVma38ZOF7XpIW69AOySyO8IM0Y=; b=7AlKnQYeH7OHkMWPmlNWOw67HQ58182uZcd10gyz9w1+M4PK6XdoD2EETLu+2QhbSFd6n4 OP0rnqgXXDVJQVBQ== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 31C541357F; Thu, 19 Oct 2023 14:40:27 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id t6wbDNs/MWV8CQAAMHmgww (envelope-from ); Thu, 19 Oct 2023 14:40:27 +0000 Received: by quack3.suse.cz (Postfix, from userid 1000) id 9F12CA06B0; Thu, 19 Oct 2023 16:40:26 +0200 (CEST) Date: Thu, 19 Oct 2023 16:40:26 +0200 From: Jan Kara To: Amir Goldstein Cc: Jan Kara , Jeff Layton , 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 , Dave Kleikamp , David Woodhouse , Richard Weinberger , Anton Altaparmakov , Konstantin Komarov , Steve French , Phillip Lougher , Evgeniy Dushistov Subject: Re: [PATCH 3/5] exportfs: make ->encode_fh() a mandatory method for NFS export Message-ID: <20231019144026.2qypsldg5hlca5zc@quack3> References: <20231018100000.2453965-1-amir73il@gmail.com> <20231018100000.2453965-4-amir73il@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231018100000.2453965-4-amir73il@gmail.com> Authentication-Results: smtp-out1.suse.de; none X-Spam-Level: X-Spam-Score: -2.77 X-Spamd-Result: default: False [-2.77 / 50.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; BAYES_HAM(-0.67)[82.91%]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FREEMAIL_ENVRCPT(0.00)[gmail.com,mail.ru]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; NEURAL_HAM_LONG(-3.00)[-1.000]; DKIM_SIGNED(0.00)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RCPT_COUNT_TWELVE(0.00)[24]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; MID_RHS_NOT_FQDN(0.50)[]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; SUSPICIOUS_RECIPS(1.50)[]; FREEMAIL_CC(0.00)[suse.cz,kernel.org,oracle.com,vger.kernel.org,suse.com,gmail.com,mit.edu,dilger.ca,mail.parknet.co.jp,infradead.org,nod.at,tuxera.com,paragon-software.com,samba.org,squashfs.org.uk,mail.ru] X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,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 agentk.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 (agentk.vger.email [0.0.0.0]); Thu, 19 Oct 2023 07:41:02 -0700 (PDT) On Wed 18-10-23 12:59:58, 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. > > This is a step towards allowing filesystems to encode non-decodeable file > handles for fanotify without having to implement any export_operations. > > Signed-off-by: Amir Goldstein Just one typo cleanup. Also I agree we need a "nop" variant of generic_encode_ino32_fh() or move this to fs/libfs.c like e.g. generic_fh_to_dentry(). > diff --git a/Documentation/filesystems/porting.rst b/Documentation/filesystems/porting.rst > index 4d05b9862451..197ef78a5014 100644 > --- a/Documentation/filesystems/porting.rst > +++ b/Documentation/filesystems/porting.rst > @@ -1045,3 +1045,12 @@ filesystem type is now moved to a later point when the devices are closed: > As this is a VFS level change it has no practical consequences for filesystems > other than that all of them must use one of the provided kill_litter_super(), > kill_anon_super(), or kill_block_super() helpers. > + > +--- > + > +**mandatory** > + > +export_operations ->encode_fh() no longer has a default implementation to > +encode FILEID_INO32_GEN* file handles. > +Fillesystems that used the default implementation may use the generic helper ^^^ Filesystems > +generic_encode_ino32_fh() explicitly. Honza -- Jan Kara SUSE Labs, CR