From: "Mohit Katiyar" Subject: Re: nfs mounting operation Date: Fri, 29 Sep 2006 13:05:36 +0900 Message-ID: <46465bb30609282105i37fb03f4jcd24c9a8675f6f1@mail.gmail.com> References: <46465bb30609272113i4daf0b9em1f32e03f35bf9fb7@mail.gmail.com> <451BC3C7.4030308@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from nf-out-0910.google.com ([64.233.182.187]:17255 "EHLO nf-out-0910.google.com") by vger.kernel.org with ESMTP id S932534AbWI2EFh (ORCPT ); Fri, 29 Sep 2006 00:05:37 -0400 Received: by nf-out-0910.google.com with SMTP id x30so886964nfb for ; Thu, 28 Sep 2006 21:05:36 -0700 (PDT) To: linux-fsdevel@vger.kernel.org In-Reply-To: <451BC3C7.4030308@redhat.com> Content-Disposition: inline Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org 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). On 9/28/06, Peter Staubach wrote: > Mohit Katiyar wrote: > > Hi all, > > > > I am new to the NFS filesystem. When we perfrom a nfs mount the > > nfs_getattr function is called. I would like to know why this getattr > > function is called and from which function in the vfs layer. I think > > it comes from vfs_stat_fd function but what are the parameters passed > > to it for calling get_attribute. Basically whose attributes are being > > searched?? > > The same case with unmounting operation. why this getattr function is > > called and from where in vfs layer it is invoked? > > I am using linux-2.6.15. > > The over the wire GETATTR function is used during mounting to get the > initial set of attributes for the root of the mounted file system. > > From time to time, GETATTR is also used to validate the attributes and > cached resources associated with entities on the mounted file system. > > ps >