From: Petr Vorel <pvorel@suse.cz>
To: Cyril Hrubis <chrubis@suse.cz>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] [PATCH v5 3/7] lib: Add support for max_kver to struct tst_test and tst_fs
Date: Wed, 12 Aug 2026 15:00:25 +0200 [thread overview]
Message-ID: <20260812130025.GB1758016@pevik> (raw)
In-Reply-To: <anxTyVyeeMo6EQfG@yuki.lan>
Hi Cyril,
> Hi!
> > diff --git a/include/tst_test.h b/include/tst_test.h
> > index c69362485e..30c32b844e 100644
> > --- a/include/tst_test.h
> > +++ b/include/tst_test.h
> > @@ -280,6 +280,9 @@ struct tst_ulimit_val {
> > *
> > * @min_kver: A minimum kernel version supporting the filesystem which has been
> > * created with mkfs.
> > + *
> > + * @max_kver: A maximum kernel version supporting the filesystem which has been
> > + * created with mkfs.
> > */
> > struct tst_fs {
> > const char *type;
> > @@ -292,6 +295,7 @@ struct tst_fs {
> > const void *mnt_data;
> > const char *min_kver;
> > + const char *max_kver;
> Also I would consider not adding this, it may feel like we are
> completing something, but in reality we are adding interface that is
> very unlikely to be ever used.
You're probably right. When I started this there were 3 tests and I thought there
would be more. I also thought this would be useful info in the metadata. But
in later versions it turn out 2 of them are to be removed. Now I double checked
"tst_kvercmp >" code and it looks like none of them applies to .max_kver usage.
I agree that a single test is not enough as a reason to have it in the metadata.
Maybe there will be more in the future, but really just a few.
=> I should probably send yet another version where I implement the skip in the
setup. Could you please comment these 2 commits (I would not resend them)?
* [v5,4/7] creat07: Avoid timeout on the test failure
https://patchwork.kernel.org/project/ltp/patch/20260810160048.1040517-5-pvorel@suse.cz/
* [v5,5/7] creat07: execve04: Remove version check, add linux-git
https://patchwork.kernel.org/project/ltp/patch/20260810160048.1040517-6-pvorel@suse.cz/
I also find things related to min_kver (will be a separate effort unrelated to
this):
* ioctl10.c: tst_kvercmp detection for old kernels might be solved by
replacing to kconfig check => need to check.
* statx04.c is skipping on btrfs based on tst_kvercmp(). This could define
.filesystems instead of .skip_filesystems (btrfs with .min_kver).
* unlink09.c as well (tmpfs with .min_kver)
Kind regards,
Petr
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next prev parent reply other threads:[~2026-08-12 13:01 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-10 16:00 [LTP] [PATCH v5 0/7] Add support for .max_kver Petr Vorel
2026-08-10 16:00 ` [LTP] [PATCH v5 1/7] tst_kvercmp: Factor out error handling Petr Vorel
2026-08-10 16:57 ` [LTP] " linuxtestproject.agent
2026-08-10 17:03 ` Petr Vorel
2026-08-11 7:01 ` [LTP] [PATCH v5 1/7] " Andrea Cervesato via ltp
2026-08-12 10:50 ` Cyril Hrubis
2026-08-10 16:00 ` [LTP] [PATCH v5 2/7] lib: Rename function check_kver() => check_min_kver() Petr Vorel
2026-08-10 16:00 ` [LTP] [PATCH v5 3/7] lib: Add support for max_kver to struct tst_test and tst_fs Petr Vorel
2026-08-11 7:04 ` Andrea Cervesato via ltp
2026-08-12 11:05 ` Cyril Hrubis
2026-08-12 12:30 ` Petr Vorel
2026-08-12 12:36 ` Cyril Hrubis
2026-08-12 13:11 ` Petr Vorel
2026-08-12 12:44 ` Cyril Hrubis
2026-08-12 13:16 ` Petr Vorel
2026-08-12 11:06 ` Cyril Hrubis
2026-08-12 13:00 ` Petr Vorel [this message]
2026-08-10 16:00 ` [LTP] [PATCH v5 4/7] creat07: Avoid timeout on the test failure Petr Vorel
2026-08-11 7:04 ` Andrea Cervesato via ltp
2026-08-10 16:00 ` [LTP] [PATCH v5 5/7] creat07: execve04: Remove version check, add linux-git Petr Vorel
2026-08-10 16:00 ` [LTP] [PATCH v5 6/7] fanotify20: Skip on v7.2 Petr Vorel
2026-08-10 16:00 ` [LTP] [PATCH v5 7/7] lib: Add 2 basic tests for .min_kver && .max_kver Petr Vorel
2026-08-11 7:13 ` Andrea Cervesato via ltp
2026-08-11 8:49 ` Petr Vorel
2026-08-11 8:53 ` Andrea Cervesato via ltp
2026-08-11 10:10 ` Avinesh Kumar via ltp
2026-08-11 1:45 ` [LTP] [PATCH v5 0/7] Add support for .max_kver Li Wang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260812130025.GB1758016@pevik \
--to=pvorel@suse.cz \
--cc=chrubis@suse.cz \
--cc=ltp@lists.linux.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox