Bug 149061 - ext3 gets i_size/i_blocks wrong on short O_DIRECT write
ext3 gets i_size/i_blocks wrong on short O_DIRECT write
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: kernel (Show other bugs)
All Linux
medium Severity low
: ---
: ---
Assigned To: Stephen Tweedie
Brian Brock
Depends On:
  Show dependency treegraph
Reported: 2005-02-18 09:09 EST by Stephen Tweedie
Modified: 2012-06-20 12:05 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2012-06-20 12:05:38 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Stephen Tweedie 2005-02-18 09:09:45 EST
Description of problem:
On a short O_DIRECT write --- for example, when a large write is submitted but
the fs fills up halfway through --- disk blocks get allocated but the file's
i_size is not updated.  This leads e2fsck to conclude that i_size is wrong on a
subsequent fsck.

Version-Release number of selected component (if applicable):

Steps to Reproduce:
1. write 1MB blocks with O_DIRECT until the fs fills up
2. fsck
Actual results:
Pass 1: Checking inodes, blocks, and sizes
Inode 12, i_size is 1889019101184, should be 1889019604992.  Fix? yes

Expected results:
clean fsck.

Not massively urgent --- it's really just a cosmetic issue --- but I'm opening
the bugzilla so it doesn't get forgotten about completely.
Comment 1 Jiri Pallich 2012-06-20 12:05:38 EDT
Thank you for submitting this issue for consideration in Red Hat Enterprise Linux. The release for which you requested us to review is now End of Life. 
Please See https://access.redhat.com/support/policy/updates/errata/

If you would like Red Hat to re-consider your feature request for an active release, please re-open the request via appropriate support channels and provide additional supporting details about the importance of this issue.

Note You need to log in before you can comment on or make changes to this bug.