From: Lennart Poettering Date: Thu, 6 Aug 2020 07:47:14 +0000 (+0200) Subject: loop-util: use new LOOP_CONFIGURE ioctl X-Git-Tag: v247-rc1~432^2~1 X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fsystemd.git;a=commitdiff_plain;h=86c1c1f34522b960724a6adda5425712bcfd95f7;hp=86c1c1f34522b960724a6adda5425712bcfd95f7 loop-util: use new LOOP_CONFIGURE ioctl LOOP_CONFIGURE allows us to configure a loopback device in one ioctl instead of two, which is not just faster but also removes the race that udev might start probing the device before we adjusted things properly. Unfortunately LOOP_CONFIGURE is broken in regards to LO_FLAGS_PARTSCAN as of kernel 5.8.0. This patch contains a work-around for that, to fallback to old behaviour if partition scanning is requested but does not work. Sucks a bit. Proposed upstream fix for that issue: https://lkml.org/lkml/2020/8/6/97 ---