From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Subject: Re: [PATCH 0/6] tagged sysfs support Date: Tue, 30 Mar 2010 20:53:25 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Cc: Greg Kroah-Hartman , Greg KH , linux-kernel@vger.kernel.org, Tejun Heo , Cornelia Huck , linux-fsdevel@vger.kernel.org, Eric Dumazet , Benjamin LaHaise , Serge Hallyn , netdev@vger.kernel.org To: "Eric W. Biederman" Return-path: Received: from mail-bw0-f209.google.com ([209.85.218.209]:61272 "EHLO mail-bw0-f209.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756018Ab0C3Sxm (ORCPT ); Tue, 30 Mar 2010 14:53:42 -0400 In-Reply-To: Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Tue, Mar 30, 2010 at 20:30, Eric W. Biederman wrote: > > The main short coming of using multiple network namespaces today > is that only network devices for the primary network namespaces > can be put in the kobject layer and sysfs. > > This is essentially the earlier version of this patchset that was > reviewed before, just now on top of a version of sysfs that doesn't > need cleanup patches to support it. Just to check if we are not in conflict with planned changes, and how to possibly handle them: There is the plan and ongoing work to unify classes and buses, export them at /sys/subsystem in the same layout of the current /sys/bus/. The decision to export buses and classes as two different things (which they aren't) is the last major piece in the sysfs layout which needs to be fixed. It would mean that /sys/subsystem/net/devices/* would look like /sys/class/net/* today. But at the /sys/subsystem/net/ directory could be global network-subsystem-wide control files which would need to be namespaced too. (The network subsystem does not use subsytem-global files today, but a bunch of other classes do.) This could be modeled into the current way of doing sysfs namespaces? A /sys/bus// directory hierarchy would need to be namespaced, not just a single plain directory with symlinks. Would that work? Thanks, Kay