[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4D53536B.2010505@redhat.com>
Date: Thu, 10 Feb 2011 10:54:35 +0800
From: Xiaotian Feng <dfeng@...hat.com>
To: David Miller <davem@...emloft.net>
CC: netdev@...r.kernel.org, eric.dumazet@...il.com,
therbert@...gle.com, ebiederm@...ssion.com, shemminger@...tta.com,
ddvlad@...edu.org
Subject: Re: [RFC PATCH net-next] net: rename group sysfs entry to netdev_group
On 02/10/2011 06:05 AM, David Miller wrote:
> From: David Miller<davem@...emloft.net>
> Date: Wed, 09 Feb 2011 14:03:23 -0800 (PST)
>
>> From: Xiaotian feng<dfeng@...hat.com>
>> Date: Wed, 9 Feb 2011 18:52:49 +0800
>>
>>> From: Xiaotian Feng<dfeng@...hat.com>
>>>
>>> commit a512b92 adds sysfs entry for net device group, but
>>> before this commit, tun also uses group sysfs, so after this
>>> commit checkin, kernel warns like this:
>>> sysfs: cannot create duplicate filename '/devices/virtual/net/vnet0/group'
>>>
>>> Since tun has used this for years, rename sysfs under tun might
>>> break existing userspace, so rename group sysfs entry for net device
>>> group is a better choice.
>>>
>>> Signed-off-by: Xiaotian Feng<dfeng@...hat.com>
>>
>> I don't think we have much choice in this matter, so I have applied
>> this patch, thanks!
>
> Wait, you didn't even build test this patch?!?!?!?!
>
> net/core/net-sysfs.c: In function ‘format_netdev_group’:
> net/core/net-sysfs.c:298: error: ‘const struct net_device’ has no member named ‘netdev_group’
> net/core/net-sysfs.c: At top level:
> net/core/net-sysfs.c:333: error: ‘show_group’ undeclared here (not in a function)
>
> "RFC" doesn't preclude you from at least build testing patches you
> post.
>
> Sigh...
>
Sorry, my bad ... v2 patch is attatched, I've built and r/w this renamed
sysfs, all work fine now. Sorry again about my carelessness ...
Regards
Xiaotian
>
>
View attachment "0001-net-rename-group-sysfs-entry-to-netdev_group.patch" of type "text/plain" (1536 bytes)
Powered by blists - more mailing lists