linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Brownell <david-b@pacbell.net>
To: linux-hotplug@vger.kernel.org
Subject: Re: Bug#95354: net.agent and ifdown
Date: Sat, 28 Apr 2001 16:08:07 +0000	[thread overview]
Message-ID: <marc-linux-hotplug-98847428001347@msgid-missing> (raw)
In-Reply-To: <marc-linux-hotplug-98839430403668@msgid-missing>

>  http://bugs.debian.org/cgi-bin/bugreport.cgi?bug•354&repeatmerged=yes

Hmm, interesting ... Debian "ifup" maintains non-kernel state,
trying to track (augment?) kernel state.  I'd suspect that's likely
to be a bit fragile (as in this bug).


> I'm not sure, but would this patch solve this problem?

The interface is not listed in the kernel state any more,
so "ifdown $INTERFACE" will fail at least on RH7
(which I just checked).  Not that the network hotplug
code cares about agent failure status code now, but I'd
not return with that "ifdown" failure status.  Other than
that, it looks like it's worth trying.

The "hot unplug" paths deserve more attention than they've
gotten so far.  That's not just in relation to the module
unloading problem that's gotten discussed a bit.

- Dave


> --- hotplug-2001-04-24.orig/etc/hotplug/net.agent
> +++ hotplug-2001-04-24/etc/hotplug/net.agent
> @@ -52,6 +52,16 @@
>      mesg $1 $ACTION event not handled
>      ;;
>  
> +unregister)
> +    if [ -x /sbin/ifdown ]; then
> + if [ "$DEBUG" != "" ]; then
> +     mesg invoke ifdown $INTERFACE
> + fi
> + exec /sbin/ifdown $INTERFACE
> +    fi
> +    mesg $1 $ACTION event not handled
> +    ;;
> +
>  *)
>      if [ "$DEBUG" != "" ]; then
>   mesg NET $ACTION event not supported
> 



_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

      reply	other threads:[~2001-04-28 16:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-27 17:56 Bug#95354: net.agent and ifdown Fumitoshi UKAI
2001-04-28 16:08 ` David Brownell [this message]

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=marc-linux-hotplug-98847428001347@msgid-missing \
    --to=david-b@pacbell.net \
    --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).