From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Staubach Subject: Re: nfs mounting operation Date: Fri, 29 Sep 2006 08:32:30 -0400 Message-ID: <451D125E.7030707@redhat.com> References: <46465bb30609272113i4daf0b9em1f32e03f35bf9fb7@mail.gmail.com> <451BC3C7.4030308@redhat.com> <46465bb30609282105i37fb03f4jcd24c9a8675f6f1@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: linux-fsdevel@vger.kernel.org Return-path: Received: from mx1.redhat.com ([66.187.233.31]:47322 "EHLO mx1.redhat.com") by vger.kernel.org with ESMTP id S964861AbWI2Mcn (ORCPT ); Fri, 29 Sep 2006 08:32:43 -0400 To: Mohit Katiyar In-Reply-To: <46465bb30609282105i37fb03f4jcd24c9a8675f6f1@mail.gmail.com> Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org Mohit Katiyar wrote: > Hi > Thanks for the reply. > But i am really confused about the nfs superblock and root directory > maintainance. > For example > If we mount two partition as shown below > > mount -t nfs host1:/export/dir1 /mnt/dir1/ > mount -t nfs host2:/export/dir2 /mnt/dir2/ > > Then will there be two nfs superbocks created one per each mount? > If not and if there is only one nfs superblock then s_root entry of > the nfs superbolck will point to which root directory(of the first or > second mount). There will be two superblocks created, one per mount, assuming that host1 and host2 are different systems. I would suggest studying the code at this point. ps