Linux Test Project
 help / color / mirror / Atom feed
From: linuxtestproject.agent@gmail.com
To: XiaoLei Wu <wxl18715129466@gmail.com>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] syscalls/unlink09: report unsupported inode flags as TCONF
Date: Tue,  2 Jun 2026 11:23:35 +0000	[thread overview]
Message-ID: <20260602112335.4032-1-linuxtestproject.agent@gmail.com> (raw)
In-Reply-To: <20260602064442.718507-1-wxl18715129466@gmail.com>

Hi XiaoLei,

On Tue, Jun 02, 2026 at 02:44:42PM +0800, XiaoLei Wu wrote:
> syscalls/unlink09: report unsupported inode flags as TCONF
>
> If FS_IOC_GETFLAGS fails with ENOTTY, the filesystem does not support
> inode flags. This is an unsupported test configuration rather than a
> broken test setup, so report TCONF instead of TBROK.
>
> Signed-off-by: XiaoLei Wu <wxl18715129466@gmail.com>

Reviewed-by: LTP AI Reviewer <ltp@lists.linux.it>

The fix is correct. ENOTTY from FS_IOC_GETFLAGS means the filesystem
does not support inode attribute ioctls, which is a missing feature, not
a broken test. TCONF is the right result code, and this is consistent
with how statx08.c and statx09.c handle the same ioctl failure:

  tst_brk(TCONF | TERRNO, "FS_IOC_GETFLAGS not supported");

The patch is a one-line change and the commit message accurately
describes both what changed and why.

---

Pre-existing issues (not introduced by this patch, informational only):

1. testcases/kernel/syscalls/unlink/unlink09.c: After the ENOTTY branch
   in setup() closes fd_immutable and calls tst_brk(TCONF, ...), the
   variable fd_immutable still holds the (now-closed) file descriptor
   value — it is never reset to -1. When cleanup() later runs, the
   guard "if (fd_immutable != -1)" is true, so setup_inode_flag() is
   called on the already-closed fd, producing an EBADF error via
   SAFE_IOCTL, followed by a second SAFE_CLOSE on the same fd. Both
   statx08.c and statx09.c avoid this by not caching the fd in a
   global until after the FS_IOC_GETFLAGS probe succeeds.

LTP AI Reviewer

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

  reply	other threads:[~2026-06-02 11:24 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-02  6:44 [LTP] [PATCH] syscalls/unlink09: report unsupported inode flags as TCONF XiaoLei Wu
2026-06-02 11:23 ` linuxtestproject.agent [this message]
2026-06-03  9:59 ` Cyril Hrubis
2026-06-04  8:05   ` xl wu
2026-06-04  8:36     ` Cyril Hrubis
2026-06-04 10:00       ` xl wu
  -- strict thread matches above, loose matches on Subject: below --
2026-06-02  6:14 XiaoLei Wu
2026-06-02 11:23 ` [LTP] " linuxtestproject.agent

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=20260602112335.4032-1-linuxtestproject.agent@gmail.com \
    --to=linuxtestproject.agent@gmail.com \
    --cc=ltp@lists.linux.it \
    --cc=wxl18715129466@gmail.com \
    /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