OpenVZ Forum


Home » Mailing lists » Devel » netns compilation
netns compilation [message #23236] Wed, 14 November 2007 15:02 Go to next message
Daniel Lezcano is currently offline  Daniel Lezcano
Messages: 417
Registered: June 2006
Senior Member
Actually the CONFIG_NET_NS is depending on CONFIG_NET and !CONFIG_SYSFS

In order to disable CONFIG_SYSFS, I must specify CONFIG_EMBEDDED to have 
the choice to unset the sysfs.

Why don't we make CONFIG_NET_NS depends on CONFIG_NET and 
CONFIG_SYSFS_DEPRECATED ?
_______________________________________________
Containers mailing list
Containers@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
Re: netns compilation [message #23237 is a reply to message #23236] Wed, 14 November 2007 15:09 Go to previous messageGo to next message
Pavel Emelianov is currently offline  Pavel Emelianov
Messages: 1149
Registered: September 2006
Senior Member
Daniel Lezcano wrote:
> Actually the CONFIG_NET_NS is depending on CONFIG_NET and !CONFIG_SYSFS
> 
> In order to disable CONFIG_SYSFS, I must specify CONFIG_EMBEDDED to have 
> the choice to unset the sysfs.
> 
> Why don't we make CONFIG_NET_NS depends on CONFIG_NET and 
> CONFIG_SYSFS_DEPRECATED ?
> 

AFAIK the SYSFS_DEPRECATED hides the sysfs functionality (files)
that is not recommended to use, but doesn't disable the sysfs
filesystem as is. On the other hand the NET_NS doesn't require 
any deprecated sysfs files, it just can't work at all with the 
SYSFS turned on. 

That's why the things look like this.

Thanks,
Pavel
_______________________________________________
Containers mailing list
Containers@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
Re: netns compilation [message #23240 is a reply to message #23237] Wed, 14 November 2007 16:06 Go to previous message
ebiederm is currently offline  ebiederm
Messages: 1354
Registered: February 2006
Senior Member
Pavel Emelyanov <xemul@openvz.org> writes:

> Daniel Lezcano wrote:
>> Actually the CONFIG_NET_NS is depending on CONFIG_NET and !CONFIG_SYSFS
>> 
>> In order to disable CONFIG_SYSFS, I must specify CONFIG_EMBEDDED to have 
>> the choice to unset the sysfs.
>> 
>> Why don't we make CONFIG_NET_NS depends on CONFIG_NET and 
>> CONFIG_SYSFS_DEPRECATED ?
>> 
>
> AFAIK the SYSFS_DEPRECATED hides the sysfs functionality (files)
> that is not recommended to use, but doesn't disable the sysfs
> filesystem as is. On the other hand the NET_NS doesn't require 
> any deprecated sysfs files, it just can't work at all with the 
> SYSFS turned on. 
>
> That's why the things look like this.

Exactly.  Once we get the sysfs support merged this restriction will go away
but until then attempting to register a two copies of the loopback device
with sysfs is fatal.

Eric
_______________________________________________
Containers mailing list
Containers@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
Previous Topic: [PATCH 0/6] A config option to compile out some namespaces code (v4)
Next Topic: [PATCH] Remove notifier block from chain when register_netdevice_notifier fails
Goto Forum:
  


Current Time: Thu Jun 01 16:52:57 GMT 2023

Total time taken to generate the page: 0.01383 seconds