All of lore.kernel.org
 help / color / mirror / Atom feed
From: linuxtestproject.agent@gmail.com
To: Gaurav Pathak <gpathak@suse.de>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] syscalls/statx13: Add test for STATX_WRITE_ATOMIC on regular file
Date: Tue, 27 Oct 2026 07:33:18 +0000	[thread overview]
Message-ID: <20261027073318.4440-1-linuxtestproject.agent@gmail.com> (raw)
In-Reply-To: <20261027-statx-atomic-write-v10-1-c12b6bc271c4@suse.com>

Hi Gaurav,

On Tue, Oct 27, 2026 at 12:36:25PM +0530, Gaurav Pathak wrote:
> syscalls/statx13: Add test for STATX_WRITE_ATOMIC on regular file

> +static int file_fd = -1;
> +static int mount_flag;
> +static char *data_buff = NULL;
> +static struct ltp_statx *buff;

Initializing a static pointer to NULL triggers a checkpatch.pl error
("ERROR: do not initialise statics to NULL"). Remove the "= NULL"
initializer, or make data_buff and file_fd local to setup() since they
are only used to create TESTFILE.

> +static void verify_statx(void)
> +{
> +	TST_EXP_PASS(statx(AT_FDCWD, TESTFILE, 0, STATX_BASIC_STATS | STATX_WRITE_ATOMIC, &buff->buff),
> +			"statx(AT_FDCWD, %s, 0, STATX_BASIC_STATS | STATX_WRITE_ATOMIC, &buf)", TESTFILE);
> +
> +	if (!TST_PASS)
> +		return;
> +
> +	/* Check if the kernel populated the atomic limit struct members */
> +	if (!(buff->data.stx_mask & STATX_WRITE_ATOMIC))
> +		tst_brk(TCONF, "Kernel may be too old to report atomic limits: STATX_WRITE_ATOMIC missing from stx_mask");

TST_EXP_PASS() records a TPASS before the TCONF checks on stx_mask and
stx_attributes, which causes do_exit() to suppress the TCONF exit status
when atomic writes are unsupported on both XFS (v6.13-v6.15 without
hardware support) and ext4. Use TST_EXP_PASS_SILENT() here (as in
statx10.c and statx11.c) so TPASS is only recorded when the atomic write
fields are supported and verified.

Verdict - Needs revision

---
Note:

The agent can sometimes produce false positives although often its
findings are genuine. If you find issues with the review, please
comment this email or ignore the suggestions.

Regards,
LTP AI Reviewer

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

  reply	other threads:[~2026-10-27  7:33 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-16  7:13 [LTP] [PATCH v7] syscalls/statx13: Add basic test for STATX_WRITE_ATOMIC on regular file Gaurav Pathak
2026-10-16 10:52 ` [LTP] " linuxtestproject.agent
2026-10-19 10:16   ` [LTP] [PATCH v8 0/1] statx: Add regression test for STATX_WRITE_ATOMIC on regular files Gaurav Pathak
2026-10-19 10:16     ` [LTP] [PATCH v8 1/1] " Gaurav Pathak
2026-10-19 10:28   ` [LTP] [PATCH v8 2/2] " Gaurav Pathak
2026-10-19 10:28     ` [LTP] [PATCH v8 1/2] syscalls/statx13: Add test for STATX_WRITE_ATOMIC on regular file Gaurav Pathak
2026-10-26 17:10       ` [LTP] [PATCH v9] " Gaurav Pathak
2026-10-26 21:30         ` [LTP] " linuxtestproject.agent
2026-10-27  7:06           ` [LTP] [PATCH v10] " Gaurav Pathak
2026-10-27  7:33             ` linuxtestproject.agent [this message]
2026-10-27  8:10               ` [LTP] [PATCH v11] " Gaurav Pathak
2026-10-27 12:19                 ` [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=20261027073318.4440-1-linuxtestproject.agent@gmail.com \
    --to=linuxtestproject.agent@gmail.com \
    --cc=gpathak@suse.de \
    --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 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.