Re: [LTP] [PATCH] listmount04: Detect EBADF behavior dynamically at runtime
Petr Vorel <[email protected]> Mon, 27 Jul 2026 10:27:38 +0200
| Newsgroups | it.linux.lists.ltp |
|---|---|
| Message-ID | <20260727082738.GB1010349@pevik> |
Hi Wake Liu,
...
> > - else
> > + tst_res(TINFO, "Detected kernel with EBADF behavior for invalid mnt_ns_fd");
> > + } else if (TST_ERR == EINVAL) {
> > kver = BEFORE_6_17_9;
> > + tst_res(TINFO, "Detected kernel with EINVAL behavior for invalid mnt_ns_fd");
> > + } else if (TST_ERR == ENOSYS) {
> > + tst_brk(TCONF, "listmount() syscall not supported");
> This is IMHO not supported, because it's part of tst_syscall().
I'm sorry, I meant "not needed".
Kind regards,
Petr
> Other than this LGTM.
> Reviewed-by: Petr Vorel <[email protected]>
> Kind regards,
> Petr
> > + } else {
> > + tst_brk(TBROK | TTERRNO, "Unexpected error during probe");
> > + }
--
Mailing list info: https://lists.linux.it/listinfo/ltp