From: Andrea Cervesato via ltp <ltp@lists.linux.it>
To: lepillai@linux.ibm.com
Cc: ltp@lists.linux.it
Subject: Re: [LTP] [PATCH v3] growfiles:fix test failure due to missing directory /test/growfiles/reiser
Date: Wed, 06 May 2026 17:22:43 +0000 [thread overview]
Message-ID: <69fb78e3.5d0a0220.177bae.1b21@mx.google.com> (raw)
In-Reply-To: <20260410062407.2839810-1-lepillai@linux.ibm.com>
Hi,
our Agent review was missing in the ML.
Here it is the result, which seems ok, unless you want to
add some notes to it.
On Fri, 10 Apr 2026, lekshmi-cpillai wrote:
> growfiles:fix test failure due to missing directory /test/growfiles/reiser
Hi lekshmi,
> -The test attempts to creates the required directory structure recursively(which was not
> in current code),Sets appropria te permissions (0755)and Verifies the directory is accessible
The body only describes what was changed, not why the directory is missing at
runtime. Please explain the root cause: under what conditions does growfiles
encounter a path whose intermediate directories do not exist, and why is
/test/growfiles/reiser specifically affected?
The body also has typos ("appropria te" → "appropriate", "attempts to creates"
→ "attempts to create") and the subject is missing a space after the colon
("growfiles:fix" → "growfiles: fix").
> + struct stat st;
> ...
> + if (stat(tmp, &st) == -1) {
> + if (mkdir(tmp, mode) == -1 && errno != EEXIST) {
The stat() result (st) is never read — only its return value is used. Drop the
stat() call and call mkdir() directly; treat EEXIST as success. This simplifies
the code and avoids a TOCTOU window between stat and mkdir.
Regards,
LTP AI Reviewer
--
Andrea Cervesato
SUSE QE Automation Engineer Linux
andrea.cervesato@suse.com
--
Mailing list info: https://lists.linux.it/listinfo/ltp
prev parent reply other threads:[~2026-05-06 17:23 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-09 9:00 [LTP] [PATCH v2] growfiles:fix test failure due to missing directory lepillai
2026-04-09 9:27 ` Cyril Hrubis
2026-04-10 6:24 ` [LTP] [PATCH v3] growfiles:fix test failure due to missing directory /test/growfiles/reiser lepillai
2026-05-06 17:22 ` Andrea Cervesato via ltp [this message]
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=69fb78e3.5d0a0220.177bae.1b21@mx.google.com \
--to=ltp@lists.linux.it \
--cc=andrea.cervesato@suse.com \
--cc=lepillai@linux.ibm.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