Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1340572rda; Mon, 23 Oct 2023 09:33:16 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHfUdyaEh82kpqr3w9DdL25j/2v1v2y9kZ7v9RzK/QMZ3KcpA+E2QbIRAnhaVgfxTP70Smy X-Received: by 2002:a05:6a21:3b49:b0:16b:7602:1837 with SMTP id zy9-20020a056a213b4900b0016b76021837mr88659pzb.29.1698078795848; Mon, 23 Oct 2023 09:33:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698078795; cv=none; d=google.com; s=arc-20160816; b=AnzY7VRcBEsa4vzUMaF5yxnos9lVY9ccbu0nBnZZ1wO4bORjYKvJHUA52mwE++9cTI 89HmCItW5XBFt/gqx8so1QgNaPCGVeoLEzu3/8u+tY360iBgLzu4oqBNYiCWzvX1B/zo iSxc2WuhOyA4nkVLcrIe9C6U0NOz3PhlLifvEltOsKelb0PJ1KZ2RCckRH57+Mmjp4jQ u2fuuN/k8kY3P46CCaMHusDB0XHB7u+x8wmCxVi1+Vu9QAW2oLCOtTgzCr9t1W7+k9jC rIp3iGplsJKSHzuClnSnj1iOTnkL8EcwG5LgInJd8gicWNNMEnQKBaSPekGmuQMJalpy ozcQ== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:dkim-signature; bh=pkUZdvsSSaDISx+RdjKJSrvLwGsv/XeNdUS+HV1/3Ug=; fh=lDiGqg3gPmyeCipTkGF/rKa36svKb+zKwXdWWECJhIc=; b=r7BHnVS37JyreL/CRUxibHQL2w/GaYmUyPw4lIdlMeKA4vz75RqKYURGqTIKGcXvaf fpU1vENJk8lgUGsQaD9gjbWSoGy6E62qELw2r5lrpJGAm6amtMC1XZSfy80PNmYAgXm8 7X2HbaM2i4G1ATuLJAN9N7G6YMkOox7mMvvYCI22SQWFgr6lUAJM3pPdZHTNbxe12g9V OUf82uxMi/BLn0xGU/R7LXbgP/LlVbG4G1CRsrhh+DVHoeb+CeAfID9CqV35ymEMGhL3 jwvFWE+9EcAUrvA+2/CGRU1SDKbCD923azNn+PjpimCegX4hTQ8TMPsL3DbFqvgs+dHq vLxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b="qs0B9/vy"; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=a5q541TZ; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id ch10-20020a056a0208ca00b005accbb92b70si6537233pgb.676.2023.10.23.09.33.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 09:33:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b="qs0B9/vy"; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=a5q541TZ; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id AC1F980775BE; Mon, 23 Oct 2023 09:33:14 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230155AbjJWQdO (ORCPT + 99 others); Mon, 23 Oct 2023 12:33:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232409AbjJWQdO (ORCPT ); Mon, 23 Oct 2023 12:33:14 -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 A7176E4; Mon, 23 Oct 2023 09:33:10 -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 3E01921883; Mon, 23 Oct 2023 16:33:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1698078789; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=pkUZdvsSSaDISx+RdjKJSrvLwGsv/XeNdUS+HV1/3Ug=; b=qs0B9/vyx0wmHrmxIW/YeFn8p93gVPq8fBS0buXVxpqrL82Eq1BFJ8hEwckJMghMUaehgb aZdPwFfgOqs9EzPBnMak3Op85qWFFhdJfTene5pKDP2ao0NvaaAs/Uv5ZTpo8+j53CU36z GVkM+sLRl/Gdw9oNKtwKbAYq7T+8APA= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1698078789; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=pkUZdvsSSaDISx+RdjKJSrvLwGsv/XeNdUS+HV1/3Ug=; b=a5q541TZqQ+U74KFYIJy2N1za4C8a8c78H8ItImld4bVulZVR9kIZHQrfcf8C12jy1PrKg bcKM9rBGw+Mg3uCQ== 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 2D377139C2; Mon, 23 Oct 2023 16:33:09 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id iqP4CkWgNmXAMwAAMHmgww (envelope-from ); Mon, 23 Oct 2023 16:33:09 +0000 Received: by quack3.suse.cz (Postfix, from userid 1000) id AFBDCA06B2; Mon, 23 Oct 2023 18:33:08 +0200 (CEST) Date: Mon, 23 Oct 2023 18:33:08 +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 Subject: Re: [PATCH 5/5] exportfs: support encoding non-decodeable file handles by default Message-ID: <20231023163308.7szzloiuzzc7lnia@quack3> References: <20231018100000.2453965-1-amir73il@gmail.com> <20231018100000.2453965-6-amir73il@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Authentication-Results: smtp-out1.suse.de; none X-Spam-Level: X-Spam-Score: -6.60 X-Spamd-Result: default: False [-6.60 / 50.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FREEMAIL_ENVRCPT(0.00)[gmail.com]; 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_SEVEN(0.00)[7]; 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)[]; BAYES_HAM(-3.00)[100.00%] X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_SOFTFAIL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Mon, 23 Oct 2023 09:33:14 -0700 (PDT) On Mon 23-10-23 16:55:40, Amir Goldstein wrote: > On Wed, Oct 18, 2023 at 1:00 PM Amir Goldstein wrote: > > > > AT_HANDLE_FID was added as an API for name_to_handle_at() that request > > the encoding of a file id, which is not intended to be decoded. > > > > This file id is used by fanotify to describe objects in events. > > > > So far, overlayfs is the only filesystem that supports encoding > > non-decodeable file ids, by providing export_operations with an > > ->encode_fh() method and without a ->decode_fh() method. > > > > Add support for encoding non-decodeable file ids to all the filesystems > > that do not provide export_operations, by encoding a file id of type > > FILEID_INO64_GEN from { i_ino, i_generation }. > > > > A filesystem may that does not support NFS export, can opt-out of > > encoding non-decodeable file ids for fanotify by defining an empty > > export_operations struct (i.e. with a NULL ->encode_fh() method). > > > > This allows the use of fanotify events with file ids on filesystems > > like 9p which do not support NFS export to bring fanotify in feature > > parity with inotify on those filesystems. > > > > Note that fanotify also requires that the filesystems report a non-null > > fsid. Currently, many simple filesystems that have support for inotify > > (e.g. debugfs, tracefs, sysfs) report a null fsid, so can still not be > > used with fanotify in file id reporting mode. > > > > Signed-off-by: Amir Goldstein > > --- > > Hi Jan, > > Did you get a chance to look at this patch? > I saw your review comments on the rest of the series, so was waiting > for feedback on this last one before posting v2. Ah, sorry. I don't have any further comments regarding this patch besides what Chuck already wrote. Honza -- Jan Kara SUSE Labs, CR