[systemd-devel] How to properly wait for udev?
Richard Weinberger
richard.weinberger at gmail.com
Sun Nov 26 21:53:00 UTC 2023
On Sun, Nov 26, 2023 at 10:36 PM Mantas Mikulėnas <grawity at gmail.com> wrote:
>
> If I remember correctly, udev (recent versions) takes a BSD lock using flock(2) while processing the device, and tools are supposed to do the same. The flock() call can be set to wait until the lock can be taken.
Hmm, indeed. But it seems to do so only for block devices.
This explain also why none of my syscall tracing showed flock() calls so far.
UBI volumes are character devices.
--
Thanks,
//richard
More information about the systemd-devel
mailing list