netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stephen Hemminger <shemminger@osdl.org>
To: Mitch Williams <mitch.a.williams@intel.com>
Cc: Bill Nottingham <notting@redhat.com>,
	"Williams, Mitch A" <mitch.a.williams@intel.com>,
	netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: bonding: cannot remove certain named devices
Date: Tue, 15 Aug 2006 15:44:44 -0700	[thread overview]
Message-ID: <20060815154444.286e12ed@localhost.localdomain> (raw)
In-Reply-To: <Pine.CYG.4.58.0608151532070.2316@mawilli1-desk2.amr.corp.intel.com>

On Tue, 15 Aug 2006 15:41:08 -0700
Mitch Williams <mitch.a.williams@intel.com> wrote:

> On Tue, 15 Aug 2006, Bill Nottingham wrote:
> >
> > Stephen Hemminger (shemminger@osdl.org) said:
> > > > They're certainly allowed, and the sysfs directory structure, files,
> > > > etc. handle it ok. Userspace tends to break in a variety of ways.
> > > >
> > > > I believe the only invalid character in an interface name is '/'.
> > > >
> > >
> > > The names "." and ".." are also verboten.
> >
> > Right. Well, I suspect they're verboten-because-some-code-breaks-making-the-directory.
> >
> > > Names with : in them are for IP aliases.
> >
> 
> So can we use
> 	sscanf(buffer, " %[^\n]", command);
> instead?  This should allow for whitespace in the filename.  Bad interface
> names will be caught by the call to dev_valid_name().
> 
> (I think I'm reading the man page correctly.)
> 
> This could have the effect of making the parser way more finicky, though,
> since we would allow trailing whitespace.  Technically I suppose it's
> legal, but it's sure hard to see on the screen.
> 
> Anybody have a better solution?
> 
> -Mitch

IMHO idiots who put space's in filenames should be ignored. As long as the
bonding code doesn't throw a fatal error, it has every right to return
"No such device" to the fool.

  reply	other threads:[~2006-08-15 22:45 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-15 19:48 bonding: cannot remove certain named devices Bill Nottingham
2006-08-15 20:39 ` Mitch Williams
2006-08-15 20:45   ` Bill Nottingham
2006-08-15 21:02     ` Stephen Hemminger
2006-08-15 21:49       ` Bill Nottingham
2006-08-15 22:41         ` Mitch Williams
2006-08-15 22:44           ` Stephen Hemminger [this message]
2006-08-15 22:56             ` David Miller
2006-08-15 23:23               ` Stephen Hemminger
2006-08-15 23:26               ` Mitch Williams
     [not found] <6Kd5j-3Y7-3@gated-at.bofh.it>
     [not found] ` <6KdRL-5xP-7@gated-at.bofh.it>
     [not found]   ` <6Ke1p-5N8-7@gated-at.bofh.it>
     [not found]     ` <6KekO-6u0-25@gated-at.bofh.it>
     [not found]       ` <6KeXv-7qe-17@gated-at.bofh.it>
     [not found]         ` <6KfTz-OX-11@gated-at.bofh.it>
     [not found]           ` <6KfTA-OX-15@gated-at.bofh.it>
2006-08-16  0:02             ` Bodo Eggert
2006-08-16  0:10               ` David Miller
2006-08-16  6:35                 ` Giacomo A. Catenazzi
2006-08-16 13:38                   ` Bill Nottingham
2006-08-16 13:59                     ` Giacomo A. Catenazzi
2006-08-16 15:11                     ` Bodo Eggert
2006-08-17  7:29                       ` Xavier Bestel
2006-08-17 14:12                         ` Bill Nottingham
2006-08-17 23:23                         ` David Miller
2006-08-18  0:34                           ` Alan Cox
2006-08-18  1:01                             ` David Miller
2006-08-18  2:20                           ` Bill Nottingham
2006-08-19  3:58                             ` Stephen Hemminger

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=20060815154444.286e12ed@localhost.localdomain \
    --to=shemminger@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mitch.a.williams@intel.com \
    --cc=netdev@vger.kernel.org \
    --cc=notting@redhat.com \
    /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).