From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Walker Subject: Re: NFS mounts being mounted read-only depending upon mount order??? Date: Mon, 20 Nov 2006 14:00:47 -0800 Message-ID: <4562258F.9040605@Cassatt.COM> References: <455DFE02.7050801@Cassatt.COM> <456216CC.40006@Cassatt.COM> <1164057026.5723.65.camel@lade.trondhjem.org> <45621C87.1050307@Cassatt.COM> <1164059027.5723.77.camel@lade.trondhjem.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Cc: nfs@lists.sourceforge.net, mwalker@cassatt.com Return-path: Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.91] helo=mail.sourceforge.net) by sc8-sf-list2-new.sourceforge.net with esmtp (Exim 4.43) id 1GmHCC-0001Xe-CR for nfs@lists.sourceforge.net; Mon, 20 Nov 2006 14:00:56 -0800 Received: from 63-192-139-32.cassatt.com ([63.192.139.32] helo=GREYHOUND.cassatt.com) by mail.sourceforge.net with esmtp (Exim 4.44) id 1GmHCB-0005LA-VS for nfs@lists.sourceforge.net; Mon, 20 Nov 2006 14:00:57 -0800 To: Trond Myklebust In-Reply-To: <1164059027.5723.77.camel@lade.trondhjem.org> List-Id: "Discussion of NFS under Linux development, interoperability, and testing." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: nfs-bounces@lists.sourceforge.net Errors-To: nfs-bounces@lists.sourceforge.net Trond Myklebust wrote: > On Mon, 2006-11-20 at 13:22 -0800, Michael Walker wrote: > > There _are_ workarounds available. You can use the 'fsid' export option > to tell knfsd to export the directories as if they were different > filesystems. > > For instance if I have > > /export/home 141.211.133.0/24(rw,sync,no_subtree_check,fsid=0) > /export/home/trondmy 141.211.133.0/24(rw,sync,no_subtree_check,fsid=3) > > in /etc/exports on the server, then I can do > > mount -t nfs -oro server:/export/home /mnt/foo > mount -t nfs -orw server:/export/home/trondmy /mnt/bar > > with no trouble. From 'cat /proc/mounts' > > server:/export/home /mnt/foo nfs rw,vers=3,rsize=32768,wsize=32768,hard,proto=tcp,timeo=600,retrans=2,sec=sys,addr=server 0 0 > server:/export/home/trondmy /mnt/bar nfs ro,vers=3,rsize=32768,wsize=32768,hard,proto=tcp,timeo=600,retrans=2,sec=sys,addr=server 0 0 > > as expected. Oh - promising. So - would I need to make the fsid unique for each mount - or could I just divide them into two pools. 'fsid=1' for all 'read-only' exported filesystems and 'fsid=2' for all read-write exported filesystems? We could possibly make something like this work. I could possibly generate unique fsid's for each export - but if the above simple logic would be sufficient - that would be easiest. > >> Can you point me to where the required 'mount --bind' fixes are >> being discussed? I haven't been able to find the >> thread in the 'lkml' (not that it isn't there somewhere). >> >> Without the matching 'mount --bind' fixes this is a very serious >> regression for us? > > I believe the most recent patchsets can be found from > > http://marc.theaimsgroup.com/?l=linux-kernel&m=115447687730218&w=2 > Thanx for the pointer - I'll track this thread down.... _Mike_ ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ NFS maillist - NFS@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nfs