I'm using libudev to detect when a USB drive is attached in a C program. Once I detect that it has been attached via a signal from the kernel (through a
udev_monitor structure), can I assume that systemd has mounted the drive?
If not, how can I deterministically wait until the drive has mounted i.e. not wait an arbitrary time X seconds, but wait on a specific event.