Bug 178720
Summary: | O_DIRECT bug when reading last block of sparse file | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 4 | Reporter: | Jeff Moyer <jmoyer> | ||||||
Component: | kernel | Assignee: | Jeff Moyer <jmoyer> | ||||||
Status: | CLOSED ERRATA | QA Contact: | Brian Brock <bbrock> | ||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | medium | ||||||||
Version: | 4.0 | CC: | jbaron, rkenna, tao | ||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | All | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | RHSA-2006-0575 | Doc Type: | Bug Fix | ||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2006-08-10 21:55:19 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: | |||||||||
Bug Depends On: | |||||||||
Bug Blocks: | 181409 | ||||||||
Attachments: |
|
Description
Jeff Moyer
2006-01-23 19:20:09 UTC
Created attachment 123587 [details]
test program to reproduce a short O_DIRECT read of the last block in a sparse file
Created attachment 123592 [details]
patch proposed upstream to fix this problem
committed in stream U4 build 34.6. A test kernel with this patch is available from http://people.redhat.com/~jbaron/rhel4/ [mpg@belenus test]$ ./directio testfile creating test file of size 4097...done performing test... Read 4096 total bytes out of 4097. Test Failed. [mpg@belenus test]$ uname -a Linux belenus 2.6.9-34.EL #1 Fri Feb 24 16:44:51 EST 2006 i686 i686 i386 GNU/Linux [root@dhcp59-204 178720]# ./directio64 test creating test file of size 4097...done performing test... short read: 1 out of 4096 bytes Read 4097 total bytes out of 4097. Test Passed. [root@dhcp59-204 178720]# ./directio test creating test file of size 4097...done performing test... short read: 1 out of 4096 bytes Read 4097 total bytes out of 4097. Test Passed. [root@dhcp59-204 178720]# uname -a Linux dhcp59-204.rdu.redhat.com 2.6.9-39.EL #1 Thu Jun 1 17:47:54 EDT 2006 x86_64 x86_64 x86_64 GNU/Linux looks good at least on x86_64 & x86 An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHSA-2006-0575.html |