Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1347193rda; Mon, 23 Oct 2023 09:44:31 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF76950Wdvl/QE0hAT0NlCXTA3A4Xsg46eGKB3UilVQF7ogyAq3XWeAsam5oEBMYJPZCned X-Received: by 2002:aa7:9689:0:b0:6bc:b13c:35d5 with SMTP id f9-20020aa79689000000b006bcb13c35d5mr6740879pfk.13.1698079471356; Mon, 23 Oct 2023 09:44:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698079471; cv=none; d=google.com; s=arc-20160816; b=eY9grSB4K26PeaHTVGEQvl6H+oXgjz7nMwtbbghyf5iD5q+dkOCS63INgO9azPpxOj eJsTmrncfxvDYknb5w6FaAeaBKHMJtSee/Z/ma0s4PrTKduXMAI4SjVE6E27iVrnTXlb 8YXbFut4JCIK/Jug2VmE1dH4IZikW+0Ew0OOc6cnX5EXBydkoLn7vr+LcJE1iSMIa26g yFfjSgDXovjb3BZwKbDFP09l98w7yvhu0LYatA+GUitLQ5FcU40ooNR8Y7i0pti5lSp4 UTr6wXTTmT/rzeeNBm4MQLjP5VR1XDxKUw/B62BWaisp7Zr3MSrXnSvKzJfVxh6T+eKr qsYQ== 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=BGTQYMFPpXuQ/hm3cgO//PE+4QyM6sGQHf352NdYoOA=; fh=+RsDa26EtFinitAHzEdIrc6gnUrGy2h3/tPcdrnXlys=; b=PojArntvAmGFsZ7b10f26NCS+SVqDeVSUAN3dKiZ2BVuZfQ/G1J6Zx2A3KR+QLGNNh krI3GIQiOVE1RM3brVk+cy5Q2SeL8b/z59fJz5rOgvopKoDvJhHsrOOvYyoTiTlg7y17 HiRnzw+uxJeFDypc0LpkBGyagHmioTBBjsa1OGMwYU53jj/8L1TWlxPLNx3/zeHFMAqx hkro+MzOjMd7FAVsGIPVebrXiJFt4FsP/fz/8rLr2Uakgzoq6igA3At+yC89bF/cKtoE VBEVjUgjezM3IagVMnFKipJ6gBI6SNWE42mDjYHz82OuE041kz4fNYXN3T5rV6zCQD69 bTOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=a6rO0X2z; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id f7-20020a635547000000b005ac154e70desi6697376pgm.348.2023.10.23.09.44.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 09:44:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=a6rO0X2z; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (Postfix) with ESMTP id 7CFEE808D220; Mon, 23 Oct 2023 09:44:28 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229550AbjJWQoS (ORCPT + 99 others); Mon, 23 Oct 2023 12:44:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59746 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229544AbjJWQoR (ORCPT ); Mon, 23 Oct 2023 12:44:17 -0400 Received: from mail-qv1-xf32.google.com (mail-qv1-xf32.google.com [IPv6:2607:f8b0:4864:20::f32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8E938E; Mon, 23 Oct 2023 09:44:15 -0700 (PDT) Received: by mail-qv1-xf32.google.com with SMTP id 6a1803df08f44-66d09b6d007so25630026d6.1; Mon, 23 Oct 2023 09:44:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698079455; x=1698684255; 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=BGTQYMFPpXuQ/hm3cgO//PE+4QyM6sGQHf352NdYoOA=; b=a6rO0X2zskHUUdzn83Wj8C7b+lGquw37jZToZi6PIi78aeew49dJAaOpIv76mwsdNz oCLF0QS+hnpvsXnDMTL3/Y2gFfDh/fVSkRaqZkcl186F6slau5IfoYY+Z1mtkpT5m/SH eA2ov4mGIrl/R+jHB9F9zFU+tcwwkuWZTbyXewVoBXJ0WGoJr1vRSMOEWJIfr8zylRvc rEusLvrQwHJ36vOTY3oDIN5e0lvuEbrPpxkgXBhGigpg5CC77jWiRHs8EsZePxp/QcaR px4GbxedWeRrdUVk5UFRrhmLkwJJ4GJl8tV1hyJMCMbZVIBn5WvRkusZHD/Nk5vWAQ97 LOvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698079455; x=1698684255; 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=BGTQYMFPpXuQ/hm3cgO//PE+4QyM6sGQHf352NdYoOA=; b=vvXZe21BrQgR9aEu2k6VgATpYx519pJWqXZXjCxn4RmUfZHcPl6SbFgZLVn00rSxgO btlRJJ27yAttYAX1dhxToTFdwEeKH+CUZ+iyjthy3zxrSigGQW54KnFMlde031Nh3KqA 4VaH87jtmXEtdpYb2TWM0pa9TdOU2GhvHhIRwkTVMcTC3HPpW2zMpyt1qYhlZz00PeUy CgDdAiphWsfjwqZTMKvfaRBH0HrxtVA0A/OYo4jq6P6aCpd+z7sFe4QXfSo4fsuvpyo5 3ZWP+PZxTOqURpLLUAu9XduQHtNlIHhfLAb8TqSAezLPDOZQrQV9EiuNZHQQeBuiX1Ar 6OEw== X-Gm-Message-State: AOJu0Yz80GpiJvWEXIoOxmutCSRQYmFILkt79ezz3yIIf5DnJMS7Rnh1 26JMYYegBq8JWTpbm0GSpOQPo7dus/tcD2E9Jic= X-Received: by 2002:ad4:5f07:0:b0:658:997f:79b7 with SMTP id fo7-20020ad45f07000000b00658997f79b7mr12538546qvb.3.1698079454938; Mon, 23 Oct 2023 09:44:14 -0700 (PDT) MIME-Version: 1.0 References: <20231018100000.2453965-1-amir73il@gmail.com> <20231018100000.2453965-6-amir73il@gmail.com> <20231023163308.7szzloiuzzc7lnia@quack3> In-Reply-To: <20231023163308.7szzloiuzzc7lnia@quack3> From: Amir Goldstein Date: Mon, 23 Oct 2023 19:44:03 +0300 Message-ID: Subject: Re: [PATCH 5/5] exportfs: support encoding non-decodeable file handles by default To: Jan Kara Cc: Jeff Layton , Chuck Lever , Christian Brauner , linux-fsdevel@vger.kernel.org, linux-nfs@vger.kernel.org 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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Mon, 23 Oct 2023 09:44:28 -0700 (PDT) On Mon, Oct 23, 2023 at 7:33=E2=80=AFPM Jan Kara wrote: > > On Mon 23-10-23 16:55:40, Amir Goldstein wrote: > > On Wed, Oct 18, 2023 at 1:00=E2=80=AFPM Amir Goldstein wrote: > > > > > > AT_HANDLE_FID was added as an API for name_to_handle_at() that reques= t > > > 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 filesyste= ms > > > 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-nu= ll > > > fsid. Currently, many simple filesystems that have support for inoti= fy > > > (e.g. debugfs, tracefs, sysfs) report a null fsid, so can still not b= e > > > 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. No worries. I will post v2 with minor fixes and add your RVB to all patches. Thanks, Amir.