From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796030421; b=l574ZOQycgDd6NRAH1bcQ1JmU7nVW6gvOjluojbPXLHdH8duQD9P8Se374eu1qFfrQ8N p8ArrYErOZO2CKwBwZsghpwn+PGDDlCdbNJG08vpGLjq7y83lE/qdRJjLGwyUH3HK+3d4 eycFE40Y1/IFoEufnQgiAMJ4Ce545z/xx09ho/83wtlCo/aV5KzhViurUI5SoWCS1tzUN gQAQcdJn4n+Df0GHQepSQtL2FN8cFGm1yq/DOGJfFoP3ukUh4K6lpADKa+qZcJjzsQfCj moq5YmJ2o60uXPkJnMnKh+BkFMFsjm5X5CVF4S8JFvIo9cY90mqbXOldIuTFBvubwew== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796030421; h=Received:DKIM-Signature:Message-ID:Date:MIME-Version:User-Agent:From: Subject:To:References:Content-Language:In-Reply-To:Content-Type: Content-Transfer-Encoding; bh=aOX/NLaT7QQ7ILFcunt6Of+eY7pSqfmwFjmg9V7ff8k=; b=tqCYuvAq85WAbKRLI9CxYmnpsBZQiZXqZ099z/4zDCaCkCivCBIhBYfTZBncQwaxhGKO VKS4Fc4ixwRQxEGYnRfVIiFgWaRu0nIio7Hn8/im+qg4GVIC811y8FmMDSaHxsBg0qS5u +290K2zEgBUV+J+/Kq7VhUhHdp6vfLH9hk1DG+vZYc0uBzcqXrj3DudMO3Z9Z+HqTSkly dmSW6UrT80JIoDzTGbOVGXkHteQAhgd6I4P1t8k1I7OJdjDj7rMWnn6kFgywiwsiRPx6P xw9FOyh8zKg32LE4JMm8RWm3eYT2fPVHTcJfqAW9hwD92izEfkxDZNyjv4MDmMaBbQQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=bXD6qrqf; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 21CB3606A327; Mon, 30 Nov 2026 09:20:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=bXD6qrqf Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6A2311F00A16; Mon, 30 Nov 2026 09:20:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796030420; bh=aOX/NLaT7QQ7ILFcunt6Of+eY7pSqfmwFjmg9V7ff8k=; h=Date:From:Subject:To:References:In-Reply-To; b=bXD6qrqfQv6ZNpAsgJDuqPSJmWR0advSZ0GrnxuQjUB6Y0G2fmo/5V12NII+FvxC6 FMF0VqV4rROa799emHiNpvOUgTr6ZTEBfvSlY7ymxUIVdQp8fPiy4M10Xl0rBGKGJZ EQOIbba0YIUw304kj4Rkg4uTx5BLoe5jNzn2IqWSTZFo0JNveZS+kfnI3HsBUn6AQ5 ZxrgIOwjpY05l800eCRfVIQSm/5Bo5fIwd4hjNPCCUhyA72PkIK7EIpg4EQCRzjfav lGe5FJ9h+dKLYhnZDk+jWDtujbFp2mGi81anY6+84ba0THBZw926m2cd0pLYj34dV/ haHU4+m2IKLNg== Message-ID: Date: Mon, 30 Nov 2026 17:20:18 +0800 X-Mailing-List: fstests@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Anand Jain Subject: Re: [PATCH 05/21] fstests: add _require_fanotify_function To: fstests@vger.kernel.org, linux-btrfs@vger.kernel.org, linux-ext4@vger.kernel.org, linux-xfs@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net References: <16d1b43e27ee01742eb6a431d99a738c0696a94f.1791272793.git.asj@kernel.org> Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit >> diff --git a/common/rc b/common/rc >> index b9481ba8ab55..0fcc1a614ad1 100644 >> --- a/common/rc >> +++ b/common/rc >> @@ -6384,6 +6384,13 @@ _require_max_file_range_blocks() >> esac >> } >> >> +_require_fanotify_function() > > I'm not sure if fanotify_function here refers to any specific function. > The name makes it sound a bit like "a function named _require_fanotify". > Could we simply name it _require_fanotify, or perhaps _require_fanotify_enabled? > >> +{ >> + if $FSNOTIFYWAIT_PROG 2>&1 | grep -q "Function not implemented"; then > > What if there's not fsnotifywait command? Maybe we should call > _require_command "$FSNOTIFYWAIT_PROG" fsnotifywait Agreed, _require_fanotify() no longer uses $FSNOTIFYWAIT_PROG now that it checks kernel support directly via fanotify_init(), so I'll keep _require_command "$FSNOTIFYWAIT_PROG" fsnotifywait in generic/901. Thanks Anand > at first? Alternatively, you could check this in src/feature.c by calling > fanotify_init() directly (so we don't have to rely on fsnotifywait). > >> + _notrun "Need CONFIG_FANOTIFY and CONFIG_FANOTIFY_ACCESS_PERMISSIONS to be enabled" >> + fi > > This function uses 8 spaces for indentation. Please use tabs instead. > > Thanks, > Zorro From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.sourceforge.net (lists.sourceforge.net [216.105.38.7]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C6FCA606A327 for ; Mon, 30 Nov 2026 09:20:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lists.sourceforge.net header.i=@lists.sourceforge.net header.a=rsa-sha256 header.s=beta header.b=Z+T2aD+g; dkim=fail reason="signature verification failed" (1024-bit key) header.d=sourceforge.net header.i=@sourceforge.net header.a=rsa-sha256 header.s=x header.b=WLVjdqhW; dkim=fail reason="signature verification failed" (1024-bit key) header.d=sf.net header.i=@sf.net header.a=rsa-sha256 header.s=x header.b=SMA0p5Wj; dkim=neutral header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=bXD6qrqf DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.sourceforge.net; s=beta; h=Content-Transfer-Encoding:Content-Type: Reply-To:From:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Subject:In-Reply-To:References:To:MIME-Version:Date: Message-ID:Sender:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Unsubscribe-Post: List-Owner; bh=EUeyftppNZQhLd29+d4FUuleWwZT/vbvWLFs8ZHUxWA=; b=Z+T2aD+gnyoT1X nI9aFY43Fmf3VuemZqqM1imjhwPgtTVonR9HOkRJN4eYy7WpihnDTcr2phMo8uLvtLOkfwQQhheF1 D2woO+RJgS32mVSGrCIQTEnr+feFMBy8FZqTedk89EgVKXNXwZdaWw8BoOgEfca8dkD/pNdQIcvY6 cHE=; Received: from [127.0.0.1] (helo=sfs-ml-1.v29.lw.sourceforge.com) by sfs-ml-1.v29.lw.sourceforge.com with esmtp (Exim 4.100.1) (envelope-from ) id 1xXxYi-000000004Vt-1vFO; Mon, 30 Nov 2026 09:20:28 +0000 Received: from [172.30.29.66] (helo=mx.sourceforge.net) by sfs-ml-1.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.100.1) (envelope-from ) id 1xXxYh-000000004Vn-406J for linux-f2fs-devel@lists.sourceforge.net; Mon, 30 Nov 2026 09:20:27 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Transfer-Encoding:Content-Type:In-Reply-To: References:To:Subject:From:MIME-Version:Date:Message-ID:Sender:Reply-To:Cc: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Unsubscribe-Post:List-Subscribe:List-Post:List-Owner:List-Archive; bh=aOX/NLaT7QQ7ILFcunt6Of+eY7pSqfmwFjmg9V7ff8k=; b=WLVjdqhWXrNrUSllW5sNOHmvnn WBW0B+atueZoFrRPn1VIEbiPc49XV9PFWsJXZPeRPzXpzJPhSUiYB0AH/VTmcNf2+2g0hg+6Adx+d Fd5azUJEaJQzrjt+kQoB0iin8gvtH72qVv/zIgq+p5GUrGOc1SS/XMIaODrz13jJrlUU=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:References:To:Subject: From:MIME-Version:Date:Message-ID:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Unsubscribe-Post: List-Subscribe:List-Post:List-Owner:List-Archive; bh=aOX/NLaT7QQ7ILFcunt6Of+eY7pSqfmwFjmg9V7ff8k=; b=SMA0p5WjRo9v2Ap28zvxZRbTuk 0bps9/dMJ6dKYGsixWFOYvvqA7aH7plTX66FDTSabhO3qcP4OBtFg9dAmrbNJbeaz0BaUDNLzZVBa STAeIvBiis00vVBzy42S1S5cKTdyUgrvyH03I64dUbZNzQ5/bSDrmhKh7ePEqoOccn44=; Received: from sea.source.kernel.org ([172.234.252.31]) by sfi-mx-2.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.100.1) id 1xXxYg-000000000bM-2P4K for linux-f2fs-devel@lists.sourceforge.net; Mon, 30 Nov 2026 09:20:27 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id 1C3C740903 for ; Mon, 30 Nov 2026 09:20:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6A2311F00A16; Mon, 30 Nov 2026 09:20:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796030420; bh=aOX/NLaT7QQ7ILFcunt6Of+eY7pSqfmwFjmg9V7ff8k=; h=Date:From:Subject:To:References:In-Reply-To; b=bXD6qrqfQv6ZNpAsgJDuqPSJmWR0advSZ0GrnxuQjUB6Y0G2fmo/5V12NII+FvxC6 FMF0VqV4rROa799emHiNpvOUgTr6ZTEBfvSlY7ymxUIVdQp8fPiy4M10Xl0rBGKGJZ EQOIbba0YIUw304kj4Rkg4uTx5BLoe5jNzn2IqWSTZFo0JNveZS+kfnI3HsBUn6AQ5 ZxrgIOwjpY05l800eCRfVIQSm/5Bo5fIwd4hjNPCCUhyA72PkIK7EIpg4EQCRzjfav lGe5FJ9h+dKLYhnZDk+jWDtujbFp2mGi81anY6+84ba0THBZw926m2cd0pLYj34dV/ haHU4+m2IKLNg== Message-ID: Date: Mon, 30 Nov 2026 17:20:18 +0800 X-Archived-By: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: fstests@vger.kernel.org, linux-btrfs@vger.kernel.org, linux-ext4@vger.kernel.org, linux-xfs@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net References: <16d1b43e27ee01742eb6a431d99a738c0696a94f.1791272793.git.asj@kernel.org> Content-Language: en-US In-Reply-To: X-Spam-Score: 0.8 (/) X-Headers-End: 1xXxYg-000000000bM-2P4K Subject: Re: [f2fs-dev] [PATCH 05/21] fstests: add _require_fanotify_function X-BeenThere: linux-f2fs-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , From: Anand Jain via Linux-f2fs-devel Reply-To: Anand Jain Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-12.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_PASS,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 >> diff --git a/common/rc b/common/rc >> index b9481ba8ab55..0fcc1a614ad1 100644 >> --- a/common/rc >> +++ b/common/rc >> @@ -6384,6 +6384,13 @@ _require_max_file_range_blocks() >> esac >> } >> >> +_require_fanotify_function() > > I'm not sure if fanotify_function here refers to any specific function. > The name makes it sound a bit like "a function named _require_fanotify". > Could we simply name it _require_fanotify, or perhaps _require_fanotify_enabled? > >> +{ >> + if $FSNOTIFYWAIT_PROG 2>&1 | grep -q "Function not implemented"; then > > What if there's not fsnotifywait command? Maybe we should call > _require_command "$FSNOTIFYWAIT_PROG" fsnotifywait Agreed, _require_fanotify() no longer uses $FSNOTIFYWAIT_PROG now that it checks kernel support directly via fanotify_init(), so I'll keep _require_command "$FSNOTIFYWAIT_PROG" fsnotifywait in generic/901. Thanks Anand > at first? Alternatively, you could check this in src/feature.c by calling > fanotify_init() directly (so we don't have to rely on fsnotifywait). > >> + _notrun "Need CONFIG_FANOTIFY and CONFIG_FANOTIFY_ACCESS_PERMISSIONS to be enabled" >> + fi > > This function uses 8 spaces for indentation. Please use tabs instead. > > Thanks, > Zorro _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel