Re: [PATCH v3] common/rc: support f2fs in _require_fanotify_ioerrors()
"Darrick J. Wong" <[email protected]> Wed, 29 Jul 2026 08:47:21 -0700
| Newsgroups | org.kernel.vger.fstests,net.sourceforge.lists.linux-f2fs-devel |
|---|---|
| Message-ID | <20260729154721.GD7371@frogsfrogsfrogs> |
On Wed, Jul 29, 2026 at 09:49:09AM +0000, Chao Yu wrote: > f2fs has supported to report fserror, this patch adds support for f2fs > in _require_fanotify_ioerrors(), so that we can run generic/791 on f2fs. > > Cc: Darrick J. Wong <[email protected]> > Signed-off-by: Chao Yu <[email protected]> Looks fine to me, Reviewed-by: "Darrick J. Wong" <[email protected]> --D > --- > v3: > - fix to chech sysfs node correctly > common/rc | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/common/rc b/common/rc > index 106f044ad..3a8f03412 100644 > --- a/common/rc > +++ b/common/rc > @@ -6266,6 +6266,12 @@ _require_fanotify_ioerrors() > x="$(_get_fs_sysfs_attr $TEST_DEV err_report_sec)" > test -n "$x" && return 0 > ;; > + f2fs) > + local feat_file="/sys/fs/f2fs/features/fserror" > + if [ -f "$feat_file" ] && [ "$(cat "$feat_file")" = "supported" ]; then > + return 0 > + fi > + ;; > esac > > _notrun "$FSTYP does not support fanotify ioerrors" > -- > 2.49.0 > >