[suse-sles-e] stat function of dummy filesystm called while mounting some otherfilesystem.

From: Rajat Sharma (sharma.rajat_at_noida.hcltech.com)
Date: Tue Nov 21 2006 - 15:12:08 CET


From: Rajat Sharma <sharma.rajat@noida.hcltech.com>
Date: Tue, 21 Nov 2006 19:42:08 +0530
Message-Id: <1164118328.2578.18.camel@rajat>
Subject: [suse-sles-e] stat function of dummy filesystm called while mounting some  otherfilesystem.

Hi,

I was trying to write a dummy filesystem, and implemented its getattr
method. I have put some debug messages inside this function. Now I
mounted this file system first, with debug messages on. Then I mounted
an altogether different file system (say nfs). I have observed one
thing, while mounting this second file system (nfs), getattr method of
my dummy filesystem (which is already mounted) also gets called while
vice-versa is not true.

So, my observation is:
1. mount some file system which is not included in the distribution (and
mainstream kernel).
2. mount some other filesystem (any filesystem).
3. while mounting second filesystem, getattr method (stat) is called for
the root directory of first filesystem.

Earlier I was targeting kernel space and vfs layer for this, but as I
could not find any such difference easily, I tried to compile same
kernel on FC5 and repeated the experiment, but there was no messing up
of getattr calls across filesystem. I guess this is specific to SLES 10
only (I also tried with SLES 9).

Please help me if there is any such behavioral change in util-linux
package or somewhere else in userspace.

rajat

DISCLAIMER:
-----------------------------------------------------------------------------------------------------------------------
The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in
this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of
this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have
received this email in error please delete it and notify the sender immediately. Before opening any mail and
attachments please check them for viruses and defect.
-----------------------------------------------------------------------------------------------------------------------



This archive was generated by hypermail 2.1.7 : Tue Nov 21 2006 - 17:15:08 CET