All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kevin Wolf <kwolf@redhat.com>
To: Michael Tokarev <mjt@tls.msk.ru>
Cc: qemu-devel@nongnu.org, qemu-block@nongnu.org
Subject: Re: [PATCH for-11.1?] qemu-iotest 161: fix race
Date: Wed, 29 Jul 2026 11:17:26 +0200	[thread overview]
Message-ID: <amnFJjf3_QVwNJwi@redhat.com> (raw)
In-Reply-To: <9f831894-4184-4a8d-9ebd-f11ca941ef07@tls.msk.ru>

Am 28.07.2026 um 22:36 hat Michael Tokarev geschrieben:
> On 7/28/26 20:53, Kevin Wolf wrote:
> 
> > > diff --git a/tests/qemu-iotests/161 b/tests/qemu-iotests/161
> > > index f25effab936..0b8ba0b19e2 100755
> > > --- a/tests/qemu-iotests/161
> > > +++ b/tests/qemu-iotests/161
> > > @@ -106,6 +106,7 @@ echo
> > >   echo "*** Commit and then change an option on the backing file"
> > >   echo
> > >   # Create the images again
> > > +rm -f -- "$TEST_IMG.base" "$TEST_IMG.int"
> > >   TEST_IMG="$TEST_IMG.base" _make_test_img $IMG_SIZE
> > >   TEST_IMG="$TEST_IMG.int" _make_test_img -b "$TEST_IMG.base" -F $IMGFMT
> > >   _make_test_img -b "$TEST_IMG.int" -F $IMGFMT
> > 
> > This can only work for the file protocol, but the test also supports
> > fuse, which is now broken.
> 
> I haven't noticed _rm_test_img function.  I wonder maybe we can add
> this rm into _make_test_img directly, and fix this for all tests?
> 
> _make_test_img already calls _rm_test_img - for fuse protocol exactly.
> It can call _rm_test_img unconditionally, I guess.

Using _rm_test_img should do the trick for 161 because it only supports
file and fuse anyway. Those are the obvious two protocols that work with
_rm_test_img.

Some others might work, too, because they just export a local file that
can be deleted normally (nbd, ssh, nfs). _make_test_img() seems to take
care of restarting the NBD server so that it would then serve the new
image. I suppose SSH and NFS don't need to be notified and would
automatically serve the new image. It's not entirely obvious, but it
looks like it could work.

rbd probably breaks, so we might need to exclude that.

Kevin



  reply	other threads:[~2026-07-29  9:17 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-28 16:39 [PATCH for-11.1?] qemu-iotest 161: fix race Michael Tokarev
2026-07-28 17:43 ` Stefan Hajnoczi
2026-07-28 17:53 ` Kevin Wolf
2026-07-28 20:36   ` Michael Tokarev
2026-07-29  9:17     ` Kevin Wolf [this message]
2026-07-29 10:46       ` Michael Tokarev
2026-07-29 11:04 ` Daniel P. Berrangé
2026-07-29 11:18   ` Michael Tokarev

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=amnFJjf3_QVwNJwi@redhat.com \
    --to=kwolf@redhat.com \
    --cc=mjt@tls.msk.ru \
    --cc=qemu-block@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    /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.