From: Greg KH <greg@kroah.com>
To: linux-hotplug@vger.kernel.org
Subject: Re: cleanup netif handling and netif-dev.d/ events
Date: Mon, 18 Oct 2004 18:28:06 +0000 [thread overview]
Message-ID: <20041018182806.GA23457@kroah.com> (raw)
In-Reply-To: <20041018181713.GA7487@vrfy.org>
On Mon, Oct 18, 2004 at 08:17:13PM +0200, Kay Sievers wrote:
> Here we supress the dev.d/ execution if we didn't change a network
> interface's name with a rule. This should solve the issue of two
> running dhclients for the same interface, cause the
> /etc/dev.d/net/hotplug.dev script that fakes the hotplug event runs
> with every udevstart for every interface and fakes a second identical
> hotplug event on bootup.
Huh? /etc/dev.d/net/hotplug.dev should contain the following three
lines at the beginning to prevent this:
# See if we really did rename this device.
if [ "$INTERFACE" = "$DEVNAME" ]; then
exit 0
fi
right? What distro doesn't do this?
Do we want to hardcode this logic inside udev itself now?
> With this patch netif interfaces are no longer stored in the udevdb.
> It is not needed, cause we don't have permissions or symlinks :) and
> all information is available in sysfs.
That's good.
> This patch also moves the dev_d execution calls out of the
> udev_add/udev_remove. As with the former api-cleanup-patch we have
> all processed data in one udev struct and can place the execution
> calls where needed.
Very nice.
Applied, thanks.
greg k-h
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
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
next prev parent reply other threads:[~2004-10-18 18:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-18 18:17 cleanup netif handling and netif-dev.d/ events Kay Sievers
2004-10-18 18:28 ` Greg KH [this message]
2004-10-18 18:44 ` Kay Sievers
2004-10-18 19:51 ` Greg KH
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20041018182806.GA23457@kroah.com \
--to=greg@kroah.com \
--cc=linux-hotplug@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).