On Mon, 09.12.13 00:33, Lennart Poettering (lenn...@poettering.net) wrote: > On Sat, 07.12.13 00:35, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: > > > Before they would only be started when the unit transitioned from > > inactive to active state. Now, they will be started also on other > > udev events. > > > > https://bugzilla.redhat.com/show_bug.cgi?id=1026860: > > > > we have an MD device holding an LVM PV. When it is detected, and the > > systemd .device unit is created, the device is not yet ready to be > > used. Later, after an udev change event, the device is ready and LVM > > udev rules add a SYSTEMD_WANTS=lvm2-pvscan@xxx.service tag. But since > > the device was active (in systemd's mind) before, the SYSTEMD_WANTS > > service was not run. > > Hmm? We introduced the SYSTEMD_READY property for LVM. A device is only > considered active by systemd if that property is either unset or set to > 1. If it is set to 0 however, the device is considered inactve. > > I have the suspicion that there's exactly zero to fix in systemd here, > it's just that something between LVM and MD is not setting that property > properly?
I have now reverted your patch, since I am pretty sure we should make this work via the dependency logic rather than queuing new jobs explicitly. If the dependency logic doesn't work correctly we need to fix this. I have also commented on the rhbz bug and reopened it. Lennart -- Lennart Poettering, Red Hat _______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel