| To: | Stephen Hemminger <shemminger@xxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH] network device renaming sysfs fix |
| From: | Dan Aloni <da-x@xxxxxxx> |
| Date: | Fri, 15 Aug 2003 19:50:48 +0300 |
| Cc: | "David S. Miller" <davem@xxxxxxxxxx>, Linux Net-Dev <netdev@xxxxxxxxxxx>, Mark Huth <mhuth@xxxxxxxxxx> |
| In-reply-to: | <20030815093724.519779e6.shemminger@xxxxxxxx> |
| References: | <20030815111514.GA5228@xxxxxxxxxxxxxxx> <20030815093724.519779e6.shemminger@xxxxxxxx> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
| User-agent: | Mutt/1.5.4i |
On Fri, Aug 15, 2003 at 09:37:24AM -0700, Stephen Hemminger wrote: > Yes, this is a better fix because it won't break when unregister and free are > split > into seperate steps (coming soon). > > But, do we really need the debug message? > Why return an error if you already committed the change? If you get an error, > then don't rename the network device. > > The class_dev kobject name is 20 chars and IFNAMSIZ is 16, so the solution > needs to truncate if new_name is not null terminated (all 16 chars long). > > This seems like the best approach: Agreed. > diff -Nru a/net/core/dev.c b/net/core/dev.c > --- a/net/core/dev.c Fri Aug 15 09:34:11 2003 > +++ b/net/core/dev.c Fri Aug 15 09:34:11 2003 [patch] -- Dan Aloni da-x@xxxxxxx |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH] network device renaming sysfs fix, Stephen Hemminger |
|---|---|
| Next by Date: | Re: netfilter6: REJECT target?, Peter Bieringer |
| Previous by Thread: | Re: [PATCH] network device renaming sysfs fix, Stephen Hemminger |
| Next by Thread: | Re: [PATCH] network device renaming sysfs fix, David S. Miller |
| Indexes: | [Date] [Thread] [Top] [All Lists] |