debian-forge/test/run
Thomas Lavocat da11ef4eb0 loop: use LOOP_CONFIGURE instead of LOOP_SET_FD
LOOP_CONFIGURE allows to atomically configure the decive when opening
it. This avoid the possibility of a race condition where between set_fd
and set_status some operations are already accepted by the loopback
device. See https://lwn.net/Articles/820408/

This feature was included in the linux kernel 5.8 however it is safe to
not include any kind of fallback to the previous method as @obudai
points out that:

LOOP_CONFIGURE was backported into RHEL 8 kernel in RHEL 8.4 as a part
of https://bugzilla.redhat.com/show_bug.cgi?id=1881760 (block layer:
update to upstream v5.8).

Since RHEL 8.4 is currently the oldest supported release that we support
running osbuild on, it might be just fine implementing this without the
fallback.

From a centos stream 8 container:
kernel-4.18.0-448.el8.x86_64
- loop: Fix missing discard support when using LOOP_CONFIGURE (Ming Lei) [1997338]
- [block] loop: Set correct device size when using LOOP_CONFIGURE (Ming Lei) [1881760]
- [block] loop: unset GENHD_FL_NO_PART_SCAN on LOOP_CONFIGURE (Ming Lei) [1881760]
- [block] loop: Add LOOP_CONFIGURE ioctl (Ming Lei) [1881760]
2023-05-05 15:42:47 +02:00
..
__init__.py test: '{. -> ./run}/test_sources.py' 2020-04-24 15:50:44 +02:00
test_assemblers.py Test: some tests depending on rpm-ostree were not checking its presence 2023-04-28 22:02:35 +02:00
test_boot.py test: explicit encodings for open() 2022-09-09 15:33:29 +02:00
test_devices.py loop: use LOOP_CONFIGURE instead of LOOP_SET_FD 2023-05-05 15:42:47 +02:00
test_executable.py test: fix executable test 2022-02-15 13:25:23 +00:00
test_mount.py Don't use capture_output=True with subprocess.run() 2023-04-26 11:43:13 +02:00
test_noop.py osbuild: run isort on all files 2022-09-12 13:32:51 +02:00
test_sources.py Don't use directory argument with SimpleHTTPRequestHandler constructor 2023-04-26 11:43:13 +02:00
test_stages.py Don't use capture_output=True with subprocess.run() 2023-04-26 11:43:13 +02:00