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: linux-xfs@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