From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Staubach Subject: Re: nfs mounting operation Date: Thu, 28 Sep 2006 08:44:55 -0400 Message-ID: <451BC3C7.4030308@redhat.com> References: <46465bb30609272113i4daf0b9em1f32e03f35bf9fb7@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]:40098 "EHLO mx1.redhat.com") by vger.kernel.org with ESMTP id S1751878AbWI1Mo7 (ORCPT ); Thu, 28 Sep 2006 08:44:59 -0400 To: Mohit Katiyar In-Reply-To: <46465bb30609272113i4daf0b9em1f32e03f35bf9fb7@mail.gmail.com> Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org 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