Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752312AbYJVV2M (ORCPT ); Wed, 22 Oct 2008 17:28:12 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752437AbYJVV1y (ORCPT ); Wed, 22 Oct 2008 17:27:54 -0400 Received: from cantor2.suse.de ([195.135.220.15]:44677 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752364AbYJVV1x (ORCPT ); Wed, 22 Oct 2008 17:27:53 -0400 Date: Wed, 22 Oct 2008 14:24:17 -0700 From: Greg KH To: "Eric W. Biederman" Cc: Benjamin Thery , netdev , Dave Miller , Al Viro , Serge Hallyn , Daniel Lezcano , linux-kernel@vger.kernel.org, Tejun Heo , Denis Lunev , Linux Containers Subject: Re: [PATCH 0/4][RFC] netns: sysfs: add a netns suffix to net device sysfs entries Message-ID: <20081022212417.GA10265@suse.de> References: <20081022152144.351965414@theryb.frec.bull.fr> <20081022201601.GC24959@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.16 (2007-06-09) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1290 Lines: 37 On Wed, Oct 22, 2008 at 02:08:26PM -0700, Eric W. Biederman wrote: > Greg KH writes: > > > On Wed, Oct 22, 2008 at 05:21:44PM +0200, Benjamin Thery wrote: > >> Network devices from sub-network namespaces appear in sysfs > >> with a name that looks like this: device_name@netns_id > >> eg: lo@3, eth0@4e > > > > How does the default udev rules as shipped by most distros handle the > > renaming of the network device if the MAC address is duplicated like it > > will be for these eth devices? > > The mac address is not duplicated. Ah, ok, I really don't think I want to know more :) > Further devices like eth0@4e are completely unusable to the udev > rules in the initial network namespace because they can not talk > to or affect them. Oh, good point. > As I read it Ben's ``solution'' puts entries in sysfs that are > completely unusable to udev. That's not a good thing to do, if udev can't see them, than HAL can't see them, then the rest of userspace usually has no idea they are present either. thanks, greg k-h -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/