Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 4 product line. The current stable release is 4.9. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 446794

Summary: LOST WRITES TO NFS FILES OPENED WITH O_SYNC
Product: Red Hat Enterprise Linux 4 Reporter: wengang wang <wangwengang1976>
Component: nfs-utilsAssignee: Peter Staubach <staubach>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: low    
Version: 4.5CC: jlayton
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 2.6.9-57 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-06-17 19:12:07 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
the patch none

Description wengang wang 2008-05-16 03:13:29 UTC
a file under NFS mount point is opened O_SYNC option.
the NFS partition on server is nearly full.
although some writes returns successfully, the file content is not the expected.

I thinks it because there is miss of syncing the write operation in nfs/file.c
which is corrected in later rhel release.

attached the patch.

Comment 1 wengang wang 2008-05-16 03:13:29 UTC
Created attachment 305605 [details]
the patch

Comment 2 Peter Staubach 2008-06-17 19:12:07 UTC
Would you describe what the expected contents of the file
would be, if they weren't what was expected, please?

The suggest patch has been part of RHEL-4 since 2.6.9-57, so
any kernel newer than that should have that support.  Would
you try your situation on a newer kernel and then if there is
still a problem, then reopen this bugzilla, please?