From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dave Schwartz Subject: Re: Mirror a file system on the fly Date: Fri, 19 Aug 2005 01:57:09 +0530 Message-ID: <3e32b77705081813273f887aef@mail.gmail.com> References: <3e32b777050818124045dcd1f0@mail.gmail.com> <1124395116.5222.396.camel@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT Cc: linux-fsdevel@vger.kernel.org Return-path: Received: from wproxy.gmail.com ([64.233.184.201]:34534 "EHLO wproxy.gmail.com") by vger.kernel.org with ESMTP id S1750865AbVHRU1L convert rfc822-to-8bit (ORCPT ); Thu, 18 Aug 2005 16:27:11 -0400 Received: by wproxy.gmail.com with SMTP id i20so436887wra for ; Thu, 18 Aug 2005 13:27:10 -0700 (PDT) To: Ram Pai In-Reply-To: <1124395116.5222.396.camel@localhost> Content-Disposition: inline Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org Hi Ram, Thanks for the inputs. I was going over the man pages describing the clone system call and its option of CLONE_NEWNS. Could understand the description only in parts. The man page suggests that this flag when set, the cloned child is started in a new name space, initialized with a copy of the parent. Now does that mean, a program like a shell when cloned with CLONE_NEWNS set, will have a copy of file hierarchy of the underlying parent process? Gracias, decebel On 8/19/05, Ram Pai wrote: > On Thu, 2005-08-18 at 12:40, Dave Schwartz wrote: > > Hi list, > > > > Not too sure if this is the right forum to ask this question but since > > my requirement is around linux filesystems, I shall take this liberty > > to post my question. > > > > My requirement is to develop a kernel/user space module to add an > > extension to the shell program environment such that this shell forks > > a mirror look-alike filesystem of the underlying OS to the programs > > run in that particular shell. > > u seem to be talking about namespaces, if I get you right. > > there is a flag CLONE_NEWNS to the system call 'clone' which does what > u r talking about. > > RP > > > > > > > > > > Was trying to look thru the FAQ and a few list archives to look for > > ideas around my requirement. The archives were overwhelming. > > > > > > Any ideas/pointers will be a great help, > > Gracias, > > decebel > > - > > To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in > > the body of a message to majordomo@vger.kernel.org > > More majordomo info at http://vger.kernel.org/majordomo-info.html > >