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 <[email protected]>
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
