+++ This bug was initially created as a clone of Bug #885536 +++ Description of problem: A file is modified by client and server continuously, and data is not sync. # mount localhost:/export /mntpath # echo abc > /mntpath/file # echo def >> /export/file # echo ghi >> /mntpath/file Then I check this file, data is like this: abc\n\0\0\0\0ghi\n Even when I use nfsv3, either i 'sync' after writing 'def' on server side.
Created attachment 660887 [details] patch -- don't extend writes to cover entire page when pagecache is invalid Jian, this patch seems to fix the bug for me. Can you confirm whether it does for you?
(In reply to comment #1) > Created attachment 660887 [details] > patch -- don't extend writes to cover entire page when pagecache is invalid > > Jian, this patch seems to fix the bug for me. Can you confirm whether it > does for you? OK, I would check it.
Patch sent to Trond and he's taken it into his bugfixes branch. It should get merged early in 3.8 and go into stable kernels soon after. I'll go ahead and close this with a resolution of UPSTREAM.
This patch is tested on 3.6.0-0.29.el7, bug resolved.