Re: How to properly wait for udev?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Nov 26, 2023 at 10:36 PM Mantas Mikulėnas <grawity@xxxxxxxxx> 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




[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux