[Bug 244967] New: Nfs client side caching of filemodes broken
https://bugzilla.novell.com/show_bug.cgi?id=244967 Summary: Nfs client side caching of filemodes broken Product: openSUSE 10.2 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Kernel AssignedTo: kernel-maintainers@forge.provo.novell.com ReportedBy: stefan.fink@swisscom.com QAContact: qa@suse.de In some circumstances nfs client side caching of file modes is broken. NFS Client version NFS Server version Result 10.0 10.0 OK 10.2 10.0 Broken 10.2 10.2 Broken When executing the testscript (see below), then tar will complain with a: 'tar: newdir/innerdir/innerfile: file changed as we read it' Quite a lot of conditions need to be met to trigger the problem. For example chmod should be recursive and a certain delay between the creation of the files and the chmod of them is needed. Testscript: #!/bin/bash # # This script will produce the following errormessage from tar: # # tar: newdir/innerdir/innerfile: file changed as we read it # create dirs rm -rf nfstest mkdir -p nfstest/dir/innerdir # create files (should not be empty) echo "Hello World!" >nfstest/dir/file echo "Hello World!" >nfstest/dir/innerdir/innerfile # problem only happens if we sleep before chmod sleep 1 # change file modes chmod -R a+r nfstest # rename dir mv nfstest/dir nfstest/newdir # tar it tar -cf nfstest/nfstest.tar -C nfstest newdir # restore old dir name mv nfstest/newdir nfstest/dir -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=244967 ------- Comment #1 from stefan.fink@swisscom.com 2007-02-13 06:21 MST ------- I completely forgot to say that the script must run inside an NFS-mounted directory. On an local disk, the errormessage from tar will of course never occur. Stefan -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=244967 jeffm@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|kernel- |nfbrown@novell.com |maintainers@forge.provo.nove| |ll.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=244967 nfbrown@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED ------- Comment #2 from nfbrown@novell.com 2007-02-25 18:31 MST ------- Thanks for reporting the problem and providing a script that easily demonstrates it. The cause of the problem is subtle, relating to how directory information is cached and when it is flushed. I have a patch which appears to fix the problem, though I want to discuss it with some more experienced NFS developers before committing to it. I'll attach the patch so you can experiment if you like. Thanks. NeilBrown -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=244967 ------- Comment #3 from nfbrown@novell.com 2007-02-25 18:32 MST ------- Created an attachment (id=120956) --> (https://bugzilla.novell.com/attachment.cgi?id=120956&action=view) Possible patch to fix problem -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=244967 ------- Comment #4 from stefan.fink@swisscom.com 2007-03-06 07:41 MST ------- Hi Neil I'm just back from vacation and managed to apply your patch. For me it looks fine, no more problems. Thanks. Stefan -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=244967 nfbrown@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED ------- Comment #5 from nfbrown@novell.com 2007-03-11 18:04 MST ------- Thanks for the confirmation. I've actually come up with a better patch which will be going upstream and will be in future SL releases. I close this bug now. Thanks again. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
participants (1)
-
bugzilla_noreply@novell.com