Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1812191rda; Tue, 24 Oct 2023 04:17:02 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFy1KXjK9WFtgMBNgkvXEM7fajNMun9r0NP16jJ/3KhDrZzqI6h36HwDJozxHPW2KX+qeGC X-Received: by 2002:a05:6870:5b95:b0:1ea:43aa:3fd9 with SMTP id em21-20020a0568705b9500b001ea43aa3fd9mr14113111oab.25.1698146222053; Tue, 24 Oct 2023 04:17:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698146222; cv=none; d=google.com; s=arc-20160816; b=Pz5ulTr7IdaZ+8OB7aPW6a/MDEAjf1ZWoi9VuorURfROddfkDHQGQ66KbRBKCj0CIO fKW9aTRYy7RswfTogfyqi9E3LN3bI1zIf/SRamY/scgBXnVb+OMGvBJKRLUQRw7nRcjQ oYDSvVXbZ5RU3mPnBWUpGD5cxj0t5q+BvtavL7CZ3M4ii+IoHrkCM/jYfpcF/zblmW0p jIRJWFxd5uuHKySZNGZgbm2rKHJ0YEUMipy6Rc2bJdWipjtIhrUgZt43Eq7iGdEfKyEj LGVN+MpOI6ObQNUws+cFfTUSsGPR9DLtO6BblicDmbZsM7OByajGl+skrZehqSnqvC6W eGHg== 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=pd6V6Jktu3VSf20KYTHeFxqavSYZjPV8TOLjpTyte4w=; fh=YzKzKT1Jwv2pWZY+MJlW1WDlUF9CLXewwU6mbww/aZk=; b=LDJBN+5fn5QB80KrBATVKRpV51Zd5KtcgHsXTNN8hURPZGexKG9mAKXc42k2QxSqfj D9dYI5iEWLDbGqY9yzh6unJk2ct+PByjWtvkFxVlX0C3Ci+VKt0R49dCTUqIFBidSH0D lG5v367I0YBLpArEKz1j9zK/zgcVW3W8IprQyFNXMv6sXXxzrUyI1wSEA3oUuWhok+Cq 4n1p37bT2Xz6zbJhcy74Btm6M4f8prDlj0/vqWtxikBWQnCkGnM9qWtpwewA5lufRm/n dbXv2NCyMkal+EBGzh0ZxuNIldgT6Vz66tV73xS6q8LSZKgL9vw8FiqN4DcIbpsPNabB onUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=TDDs837B; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id h4-20020a636c04000000b00578b79c785bsi8202387pgc.217.2023.10.24.04.17.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 04:17:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=TDDs837B; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (Postfix) with ESMTP id 3DC4D80859B8; Tue, 24 Oct 2023 04:16:57 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229583AbjJXLQ5 (ORCPT + 99 others); Tue, 24 Oct 2023 07:16:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229487AbjJXLQ4 (ORCPT ); Tue, 24 Oct 2023 07:16:56 -0400 Received: from mail-qt1-x833.google.com (mail-qt1-x833.google.com [IPv6:2607:f8b0:4864:20::833]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4431E109; Tue, 24 Oct 2023 04:16:54 -0700 (PDT) Received: by mail-qt1-x833.google.com with SMTP id d75a77b69052e-41cd58eb037so29260531cf.1; Tue, 24 Oct 2023 04:16:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698146213; x=1698751013; 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=pd6V6Jktu3VSf20KYTHeFxqavSYZjPV8TOLjpTyte4w=; b=TDDs837ButdFB1iENbbYlpMq82Oy4FUeoxJSMT+JpNabuOId3PiaGKlDjUSV5EFckO BeNvT8cmoUwHIu+8h6CCeYxEpUD2aEoDE9IDmCGINqJUxVTXvNxHhGnmMAqjNhBe570W bcOtVVkSULYMSzaoFdTmAFPMhrkroheAZXmLnNMNR6rXmrHGYTso8qYod4leGka+RhKu 3Z2/ByASoSivEOHpsj4WwLetbpMWGKHGfyfTNz2Vag+E0NTMIOPBjEq2S5CZqCLcm02g /0DaDJ6X8+G5eYDkQpplXanQsntJR3l2vaRFk5/B2DvA3W4hHv0b1iEeyH7vxg7qi2eR zYJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698146213; x=1698751013; 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=pd6V6Jktu3VSf20KYTHeFxqavSYZjPV8TOLjpTyte4w=; b=G/fpXVKrqwp6X8bG+tUMzXQkK1FHWx4ltfmps8Nzt7nfEv+E1f/nTazRopTXUuuV8W wxNw8z9niIhaWdcG3CyO7xN75sl6LY6n4D/w0q8OA1cCkc9PeSINKY/CcGwJHQvbeeGi E7yZxxo6qPACQhRsY0p6A5uM8E77wPH4oIcymFkekxTOgFTfyDWTapkOmEVxTfObcAcQ INCFj5o6TEVnq3QBvopstrB62ePl5eHENWL4vCJoZh3U+/J9ZOMKWOqvkvP6jllreoqg QJjbOq+9X8IF7WRmVjVvMQHmVCFhCunHHdQLKpPOfv0lv1aF8EBHN0HNrrX24AOt3bfr suRg== X-Gm-Message-State: AOJu0Yy9d5CcyCpfsC+bMgw/psr1jhAjFIsaarJ8841vP39yMqTAOKyA qOMhLmRzLW1o4DV1yRMjlMiikJCmwloH0OMFHFc= X-Received: by 2002:a05:6214:2629:b0:658:708c:4d56 with SMTP id gv9-20020a056214262900b00658708c4d56mr18526196qvb.17.1698146213329; Tue, 24 Oct 2023 04:16:53 -0700 (PDT) MIME-Version: 1.0 References: <20231023180801.2953446-1-amir73il@gmail.com> In-Reply-To: <20231023180801.2953446-1-amir73il@gmail.com> From: Amir Goldstein Date: Tue, 24 Oct 2023 14:16:41 +0300 Message-ID: Subject: Re: [PATCH v2 0/4] Support more filesystems with FAN_REPORT_FID To: Christian Brauner Cc: Al Viro , Jan Kara , Jeff Layton , Chuck Lever , 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 groat.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 (groat.vger.email [0.0.0.0]); Tue, 24 Oct 2023 04:16:57 -0700 (PDT) On Mon, Oct 23, 2023 at 9:08=E2=80=AFPM Amir Goldstein = wrote: > > Christian, > > The grand plan is to be able to use fanotify with FAN_REPORT_FID as a > drop-in replacement for inotify, but with current upstream, inotify is > supported on all the filesystems and FAN_REPORT_FID only on a few. > > Making all filesystem support FAN_REPORT_FID requires that all > filesystems will: > 1. Support for AT_HANDLE_FID file handles > 2. Report non-zero f_fsid > > This patch set takes care of the first requirement. > Patches were reviewed by Jan and the nfsd maintainers. > > I have another patch in review [2] for adding non-zero f_fsid to many > simple filesystems, but it is independent of this patch set, so no > reason to couple them together. Christian, Jan has reviewed the independent f_fsid vfs patch [2], so if you pick up this patch set, please also apply the f_fsid vfs patch. This would allow changing "more" in the subject of this cover letter (and possible PR subject) to "most" (i.e. all the simple filesystems and all the filesystems that already report a non-zero f_fsid). For the few remaining filesystems that still report zero f_fsid, I will be sending independent patches to individual maintainers. I had already posted f_fsid patches for gfs2 [3] and nfs [4]. Thanks, Amir. > > Note that patch #2 touches many filesystems due to vfs API change, > requiring an explicit ->encode_fh() method. I did not gets ACKs from > all filesystem maintainers, but the change is trivial and does not > change any logic. > > Thanks, > Amir. > > Changes since v1 [1]: > - Patch #1 already merged into v6.6-rc7 > - Fix build without CONFIG_EXPORTFS > - Fix checkpatch warnings > - Define symbolic constant for FILEID_INO64_GEN_LEN > - Clarify documentation (units of) max_len argument > > [1] https://lore.kernel.org/r/20231018100000.2453965-1-amir73il@gmail.com= / > [2] https://lore.kernel.org/r/20231023143049.2944970-1-amir73il@gmail.com= / [3] https://lore.kernel.org/linux-fsdevel/20231024075535.2994553-1-amir73il= @gmail.com/ [4] https://lore.kernel.org/linux-fsdevel/20231024110109.3007794-1-amir73il= @gmail.com/ > > Amir Goldstein (4): > exportfs: add helpers to check if filesystem can encode/decode file > handles > exportfs: make ->encode_fh() a mandatory method for NFS export > exportfs: define FILEID_INO64_GEN* file handle types > exportfs: support encoding non-decodeable file handles by default > > Documentation/filesystems/nfs/exporting.rst | 7 +-- > Documentation/filesystems/porting.rst | 9 ++++ > fs/affs/namei.c | 1 + > fs/befs/linuxvfs.c | 1 + > fs/efs/super.c | 1 + > fs/erofs/super.c | 1 + > fs/exportfs/expfs.c | 54 +++++++++++++++------ > fs/ext2/super.c | 1 + > fs/ext4/super.c | 1 + > fs/f2fs/super.c | 1 + > fs/fat/nfs.c | 1 + > fs/fhandle.c | 6 +-- > fs/fuse/inode.c | 7 +-- > fs/jffs2/super.c | 1 + > fs/jfs/super.c | 1 + > fs/nfsd/export.c | 3 +- > fs/notify/fanotify/fanotify_user.c | 4 +- > fs/ntfs/namei.c | 1 + > fs/ntfs3/super.c | 1 + > fs/overlayfs/util.c | 2 +- > fs/smb/client/export.c | 11 ++--- > fs/squashfs/export.c | 1 + > fs/ufs/super.c | 1 + > include/linux/exportfs.h | 51 ++++++++++++++++++- > 24 files changed, 128 insertions(+), 40 deletions(-) > > -- > 2.34.1 >