From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kirill Korotaev Subject: Re: [PATCH 2/4] sysfs: Implement sysfs manged shadow directory support. Date: Mon, 30 Jul 2007 17:57:09 +0400 Message-ID: <46ADEE35.8000109@sw.ru> References: <1182446577.8138.29.camel@localhost> <20070621211637.GB10583@suse.de> <20070622001328.GA14113@suse.de> <20070625212339.GA13398@kroah.com> <46A3B449.3090409@gmail.com> <20070722202508.GA18018@suse.de> <46A425F9.1030008@gmail.com> <46AD8E92.7080002@suse.de> <46ADDC7F.1090306@sw.ru> <46ADE24E.8020502@suse.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <46ADE24E.8020502-l3A5Bk7waGM@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Tejun Heo Cc: Linux Containers , Greg KH , Greg KH , Dave Hansen , "Eric W. Biederman" List-Id: containers.vger.kernel.org Tejun Heo wrote: > Hello, Kirill. > > Kirill Korotaev wrote: > >>Imho then OpenOVZ approach with multiple sysfs trees is better. >>it allows to use cached dentries with moultiple sysfs mounts >>each having different view. >>It also allows to hide hw-related entries and events from the containers >>and has quite little modifications in the code. > > > I thought something like supermount plus some twists or fuse based sysfs > proxy would fit better. Dunno whether or how uevent and polling stuff > can work that way tho. Note that sysfs no longer keeps dentries and > inodes pinned. It might make the shared dentry stuff harder. We simply don't share sysfs dentries/inodes between containers. It's not that frequently used time critical fs to be super-optimized... :) I don't like the idea with fuse, since sysfs exports kernel-related stuff, so doing it via user-space would be pain. Thanks, Kirill