Bug 637972
Summary: | GFS2: Not enough space reserved in gfs2_write_begin and possibly elsewhere. | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Ben Marzinski <bmarzins> | ||||
Component: | kernel | Assignee: | Ben Marzinski <bmarzins> | ||||
Status: | CLOSED ERRATA | QA Contact: | Cluster QE <mspqa-list> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | low | ||||||
Version: | 6.1 | CC: | adas, anton, dougsland, gansalmon, itamar, jonathan, kernel-maint, madhu.chinakonda, rpeterso, swhiteho | ||||
Target Milestone: | rc | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | kernel-2.6.32-83.el6 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | 626686 | Environment: | |||||
Last Closed: | 2011-05-19 12:36:43 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: | 626686 | ||||||
Bug Blocks: | 637970 | ||||||
Attachments: |
|
Description
Ben Marzinski
2010-09-27 21:31:25 UTC
Created attachment 450237 [details]
Patch that fixes the issue
This patch adds an inline function, gfs2_rg_blocks() that returns either the number of allocated blocks plus one for the rg header, or the total number of blocks in the rg, whichever is less. This is used by functions that need to allocate blocks in transactions to makes sure and reserve enough blocks to deal with the resource groups.
This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux maintenance release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Update release for currently deployed products. This request is not yet committed for inclusion in an Update release. Patch(es) available on kernel-2.6.32-83.el6 Is there a procedure for reproducing this bug? If you keep running a bunch of # dd if=/dev/zero of=<gfs2_file> bs=512 count=1 # dd if=/dev/zero of=<gfs2_file> bs=4096 seek=238418579101562 count=1 to different files on a 1024 byte gfs2 filesystem, you should eventually get to a point where you need to allocate from more than one resource group bit block, and you should hit this. I never did it myself. I just noticed that it was wrong while adding fallocate support. 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 therefore 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-2011-0542.html |