From: Cyril Hrubis <chrubis@suse.cz>
To: Martin Doucha <mdoucha@suse.cz>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] [PATCH] refluxfs: Check kernel reflink support before mount
Date: Thu, 13 Aug 2026 16:15:46 +0200 [thread overview]
Message-ID: <an3RkmTWSfZQjb6K@yuki.lan> (raw)
In-Reply-To: <6349138c-6d02-4df9-90c9-c766fa480c3d@suse.cz>
Hi!
> > @@ -993,9 +993,15 @@ int safe_mount(const char *file, const int lineno, void (*cleanup_fn)(void),
> > "mount.%s failed with %i", filesystemtype, rval);
> > return -1;
> > } else if (rval == -1) {
> > - tst_brkm_(file, lineno, TBROK | TERRNO, cleanup_fn,
> > - "mount(%s, %s, %s, %lu, %p) failed", source, target,
> > - filesystemtype, mountflags, data);
> > + if (errno == EOPNOTSUPP) {
> > + tst_brkm_(file, lineno, TCONF | TERRNO, cleanup_fn,
> > + "mount(%s, %s, %s, %lu, %p) failed with EOPNOTSUPP", source, target,
> > + filesystemtype, mountflags, data);
> > + } else {
> > + tst_brkm_(file, lineno, TBROK | TERRNO, cleanup_fn,
> > + "mount(%s, %s, %s, %lu, %p) failed", source, target,
> > + filesystemtype, mountflags, data);
> > + }
> > } else {
> > tst_brkm_(file, lineno, TBROK | TERRNO, cleanup_fn,
> > "Invalid mount(%s, %s, %s, %lu, %p) return value %d",
>
> Hi,
> yes, but I think it'd be better to add a setting to struct tst_test to
> enable this TCONF check only for specific tests. By default, EOPNOTSUPP
> should still trigger TBROK.
>
> Something like:
> .mount_check_support = 1
Shoudn't that be per filesystem and live in tst_fs structure?
Either way we will need a flag to the safe_mount() added first...
--
Cyril Hrubis
chrubis@suse.cz
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next prev parent reply other threads:[~2026-08-13 14:16 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-12 15:22 [LTP] [PATCH] refluxfs: Check kernel reflink support before mount Martin Doucha
2026-08-12 15:49 ` Cyril Hrubis
2026-08-13 6:36 ` Andrea Cervesato via ltp
2026-08-13 10:12 ` Cyril Hrubis
2026-08-13 10:46 ` Andrea Cervesato via ltp
2026-08-13 11:46 ` Cyril Hrubis
2026-08-13 13:49 ` Martin Doucha
2026-08-13 14:15 ` Cyril Hrubis [this message]
2026-08-13 15:18 ` Martin Doucha
2026-08-12 16:02 ` [LTP] " linuxtestproject.agent
2026-08-13 6:29 ` [LTP] [PATCH] " Andrea Cervesato via ltp
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=an3RkmTWSfZQjb6K@yuki.lan \
--to=chrubis@suse.cz \
--cc=ltp@lists.linux.it \
--cc=mdoucha@suse.cz \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.