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:
parent
2af964a1d5
commit
43ae79cabf
1 changed files with 1 additions and 0 deletions
|
|
@ -69,6 +69,7 @@ class LoopbackService(devices.DeviceService):
|
||||||
lo = self.ctl.loop_for_fd(fd,
|
lo = self.ctl.loop_for_fd(fd,
|
||||||
offset=offset,
|
offset=offset,
|
||||||
sizelimit=sizelimit,
|
sizelimit=sizelimit,
|
||||||
|
partscan=False,
|
||||||
autoclear=True)
|
autoclear=True)
|
||||||
|
|
||||||
return lo
|
return lo
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue