2003-12-04 04:32:35

by Lever, Charles

[permalink] [raw]
Subject: RE: [NFS PATCH] 2.6.0-test10 Invalidate cached inode attributes after rename

> %% "Shantanu Goel" <[email protected]> writes:
>=20
> sg> 1. Check out a CVS repository into an NFS mounted directory.
> sg> 2. Move files from CVS working directory into another=20
> directory in the
> sg> same filesystem.
> sg> 3. Tar up the resultant directory.
> sg> 4. Tar prints lots of "file changed after we read it" messages.
>=20
> Interesting: I see this exact same message when taring up the contents
> of a ClearCase view (in 2.4.20-x)... even though I'm 100%=20
> positive that
> no one but me is touching those files. Is this scenario relevant to a
> kernel that old as well?

yes, steve dickson at red hat also found this problem in 2.4.21.


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs


2003-12-04 15:27:24

by Shantanu Goel

[permalink] [raw]
Subject: Re: [NFS PATCH] 2.6.0-test10 Invalidate cached inode attributes after rename

Stock 2.4 kernels don't exhibit this behaviour because they always
invalidate attributes for the last component of the path if CTO is
enabled, see fs/nfs/dir.c:nfs_lookup_verify_inode(). In 2.6 and 2.4
kernels such as AS3's 2.4.21, with the newer CTO patches, this code was
changed to only do so when the file is being opened. I am surprised you
are seeing this on 2.4.20 since I can't replicate it on 2.4.22.

Shantanu

Lever, Charles wrote:

>>%% "Shantanu Goel" <[email protected]> writes:
>>
>> sg> 1. Check out a CVS repository into an NFS mounted directory.
>> sg> 2. Move files from CVS working directory into another
>>directory in the
>> sg> same filesystem.
>> sg> 3. Tar up the resultant directory.
>> sg> 4. Tar prints lots of "file changed after we read it" messages.
>>
>>Interesting: I see this exact same message when taring up the contents
>>of a ClearCase view (in 2.4.20-x)... even though I'm 100%
>>positive that
>>no one but me is touching those files. Is this scenario relevant to a
>>kernel that old as well?
>>
>>
>
>yes, steve dickson at red hat also found this problem in 2.4.21.
>
>
>



------------------------------------------------------------------------------
This message is intended only for the personal and confidential use of the
designated recipient(s) named above. If you are not the intended recipient of
this message you are hereby notified that any review, dissemination,
distribution or copying of this message is strictly prohibited. This
communication is for information purposes only and should not be regarded as
an offer to sell or as a solicitation of an offer to buy any financial
product, an official confirmation of any transaction, or as an official
statement of Lehman Brothers. Email transmission cannot be guaranteed to be
secure or error-free. Therefore, we do not represent that this information is
complete or accurate and it should not be relied upon as such. All
information is subject to change without notice.



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs