Skip to contentSkip to conversation

Getattr calls

DISCUSSION Mohit Katiyar 1 participant 1 message Oct 13, 2006 VFS

lore
Share & tools
lore
#0 lore raw

Hi,

I have just shifted from using linux-2.6.5 to 2.6.16 and I am seeing a change in mounting operation.
I have created a dummy file-system, put some printk in getattr method of this file system.

Using 2.6.16 kernel I do the following steps

1) First I mount my dummy filesystem
mount -t rkfs none ../rkfs/rkfsmnt

2) Then I mounted a partition from different machine though nfs. mount -t nfs 10.112.4.168:/home/guest /mnt/nfs

Now /var/log/messages show that rkfs(dummy filesystem) getattr has been called while mounting the nfs partition.
Is it a normal behaviour??
If it is then why it does not happen in 2.6.5 kernel?
Can anyone help me find out where and in which part of the kernel the changes has been made to show such behaviour??

TIA

Mohit Katiyar