From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bharata B Rao Subject: Re: [RFC PATCH 1/2] Union Mount: glibc readdir support Date: Mon, 12 May 2008 09:13:41 +0530 Message-ID: <20080512034341.GA10541@in.ibm.com> References: <20080429133201.GA9938@localhost.localdomain> <20080429133346.GB9938@localhost.localdomain> <48195E69.3030701@redhat.com> <20080506042117.GA29298@in.ibm.com> <482058C4.8010104@davidnewall.com> Reply-To: bharata@linux.vnet.ibm.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Ulrich Drepper , bsn.0007@gmail.com, libc-alpha@sourceware.org, Jan Blunck , Erez Zadok , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, viro@zeniv.linux.org.uk, Christoph Hellwig , Mingming Cao , Dave Hansen , Trond Myklebust , David Woodhouse To: David Newall Return-path: Received: from e1.ny.us.ibm.com ([32.97.182.141]:58397 "EHLO e1.ny.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751996AbYELDnr (ORCPT ); Sun, 11 May 2008 23:43:47 -0400 Content-Disposition: inline In-Reply-To: <482058C4.8010104@davidnewall.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Tue, May 06, 2008 at 10:40:28PM +0930, David Newall wrote: > Bharata B Rao wrote: > > Is dis-allowing NFS-exporting of unions an option ? > > Is it that simple? What about a union further in an NFS export? What > about union-mounting after the tree has been NFS-exported? Ok I am realizing that it is not simple. I am actually reading up NFS code to understand how it supports crossing of mountpoints. I see that one can mount a filesystem within a NFS export and NFS server would be able to cross over to that filesystem and provide those contents to the client. Acutally Union Mount maintains union stack very similar to the mount stack, but here we walk the union stack down. So I am checking if something similar to mountpoint crossing would be able to solve the problem of fetching all the contents of the NFS-exported union. Answering my question to Erez that I raised in another thread, I see that Unionfs doesn't set the export_operations in it's superblock and hence I believe unions created by Unionfs aren't NFS-exportable as of know. Erez, correct me if I got it wrong. Regards, Bharata.