From: Bryan Kadzban Date: Thu, 18 Jan 2007 12:08:21 +0000 Subject: Re: Race condition for udev/persistent-net Message-Id: <45AF6335.8050004@kadzban.is-a-geek.net> MIME-Version: 1 Content-Type: multipart/mixed; boundary="===============2030461848==" List-Id: References: <200701181131.55452.zzam@gentoo.org> In-Reply-To: <200701181131.55452.zzam@gentoo.org> To: linux-hotplug@vger.kernel.org This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --===============2030461848== Content-Type: multipart/signed; micalg=pgp-ripemd160; protocol="application/pgp-signature"; boundary="------------enig87BD8073D8798F07016F0D3E" This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig87BD8073D8798F07016F0D3E Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Matthias Schwarzott wrote: > It is also possible to just skip the DRIVERS=3D=3D"?*" part from the > generated rules and only keep it in the generator (with the wait > inside the generating part) to set a reasonable comment. Unfortunately no; from /lib/udev/write_net_rules: # the DRIVERS key is needed to not match bridges and VLAN sub-interfaces match=3D"DRIVERS=3D=3D\"?*\", ATTRS{address}=3D=3D\"$MAC_ADDR\"" If DRIVERS is not present, then if you set up VLAN devices that are supposed to be named e.g. eth0.1 and eth0.2 (because you've used vconfig to set this naming policy), then this rule would match them when they get created. So they'd be named plain eth0 -- or more likely one would be named eth0_retry and the other would log an error, because eth0 is in use -- because their MAC address is the same as eth0's MAC, and the rule matches. What kernel version is this? It almost sounds like your kernel has issues with uevent ordering (the time the uevent is sent versus the time various attributes are created). I haven't tried your test under 2.6.19.2, but I will later today. --------------enig87BD8073D8798F07016F0D3E Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFr2M8S5vET1Wea5wRA3OIAJ4od413pUJWN45dULVU/JA/Zn3f9gCg4PXW eapfPRz/XadeE6WezXGtZRg= =Ajix -----END PGP SIGNATURE----- --------------enig87BD8073D8798F07016F0D3E-- --===============2030461848== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV --===============2030461848== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel --===============2030461848==--