[Toybox] [PATCH] losetup: Wait for ueventd to create loop device on Android

Yi-yo Chiang yochiang at google.com
Tue Aug 23 08:57:53 PDT 2022


Android doesn't use devtmpfs. Instead device nodes under /dev are
created by userspace daemon ueventd. There could be a noticeable delay
between LOOP_CTL_GET_FREE issued and loop device created, so we need to
wait until it is created and then continue.
The timeout (5s) and time quantum (20ms) is picked randomly, it bares no
special meaning but they worked fine empirically.

Bug: 243495405
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20220823/645cb230/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-losetup-Wait-for-ueventd-to-create-loop-device-on-An.patch
Type: text/x-patch
Size: 1534 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20220823/645cb230/attachment.bin>


More information about the Toybox mailing list