devices/loopback: set partscan to false

Pass "partscan=False" to `LoopControl.loop_for_fd` to ensure that the
kernel does indeed not try to scan the partition table for the device.
This commit is contained in:
Christian Kellner 2021-08-08 16:26:38 +00:00 committed by Tom Gundersen
parent 2af964a1d5
commit 43ae79cabf

View file

@ -69,6 +69,7 @@ class LoopbackService(devices.DeviceService):
lo = self.ctl.loop_for_fd(fd,
offset=offset,
sizelimit=sizelimit,
partscan=False,
autoclear=True)
return lo