From: Kevin Wolf <kwolf@redhat.com>
To: Ilya Leoshkevich <iii@linux.ibm.com>
Cc: Hanna Reitz <hreitz@redhat.com>,
qemu-block@nongnu.org, qemu-devel@nongnu.org
Subject: Re: [PATCH] iotests/108: probe loop device setup
Date: Fri, 30 Oct 2026 12:09:02 +0100 [thread overview]
Message-ID: <auR6zsGQ0ahG9Mn3@redhat.com> (raw)
In-Reply-To: <20261013182804.103882-1-iii@linux.ibm.com>
Am 13.10.2026 um 20:28 hat Ilya Leoshkevich geschrieben:
> Running iotests/108 in a Docker container, that has passwordless sudo
> configured, fails with:
>
> losetup: /home/user/src/qemu/build/scratch/qcow2-file-108/t.qcow2: failed to set up loop device: No such file or directory
>
> because it incorrectly assumes losetup is allowed to do loop device
> setup, when in reality it can only list devices.
>
> Fix by probing loop device setup, using the test script as a backing
> file. With this, the test is correctly skipped.
>
> Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Won't loop-create-file and fuse-truncate need the same fix?
Maybe we could have a _require_losetup() helper function in common.rc
for the shell-based tests? (Only two at the moment, though I also have a
patch on the list that would add a third one.)
Kevin
prev parent reply other threads:[~2026-10-30 11:09 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-13 18:28 [PATCH] iotests/108: probe loop device setup Ilya Leoshkevich
2026-10-13 18:53 ` Eric Blake
2026-10-13 19:08 ` Ilya Leoshkevich
2026-10-13 19:14 ` Eric Blake
2026-10-30 11:09 ` Kevin Wolf [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=auR6zsGQ0ahG9Mn3@redhat.com \
--to=kwolf@redhat.com \
--cc=hreitz@redhat.com \
--cc=iii@linux.ibm.com \
--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.