Bug 626561
| Summary: | GFS2: [RFE] fallocate support for GFS2 | ||||||
|---|---|---|---|---|---|---|---|
| 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: | low | Docs Contact: | |||||
| Priority: | low | ||||||
| Version: | 6.1 | CC: | adas, bmarzins, rpeterso, ssaha, swhiteho | ||||
| Target Milestone: | rc | Keywords: | FutureFeature | ||||
| Target Release: | --- | ||||||
| Hardware: | All | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | kernel-2.6.32-83.el6 | Doc Type: | Enhancement | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | 455572 | Environment: | |||||
| Last Closed: | 2011-05-23 20:50:08 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: | 455572 | ||||||
| Bug Blocks: | 659123, 707091 | ||||||
| Attachments: |
|
||||||
|
Description
Ben Marzinski
2010-08-23 20:20:28 UTC
Created attachment 453519 [details]
patch posted to rhkernel.
This patch adds fallocate support to GFS2.
Patch(es) available on kernel-2.6.32-83.el6 Verified using fallocate tests from LTP. [root@dash-01 community]# uname -r 2.6.32-128.el6.x86_64 [root@dash-01 community]# mount -t gfs2 /dev/mapper/dash-renamer on /mnt/renamer type gfs2 (rw,seclabel,relatime,hostdata=jid=0) [root@dash-01 community]# export TMPDIR=/mnt/renamer [root@dash-01 community]# ./fallocate01 fallocate01 1 TPASS : fallocate(3, 0, 49152, 4096) returned 0 fallocate01 2 TPASS : write operation on fallocated(3, 0, 49152, 4096) returned 1 fallocate01 3 TPASS : fallocate(4, 1, 49152, 4096) returned 0 fallocate01 4 TPASS : write operation on fallocated(4, 1, 49152, 4096) returned 1 [root@dash-01 community]# ./fallocate02 fallocate02 1 TPASS : fallocate(tfile_read_3018:3, 1, 0, 4096) returned 9 fallocate02 2 TPASS : fallocate(tfile_write_3018:4, 1, -4096, 4096) returned 22 fallocate02 3 TPASS : fallocate(tfile_write_3018:4, 1, 4096, -4096) returned 22 fallocate02 4 TPASS : fallocate(tfile_write_3018:4, 1, 49152, 0) returned 22 fallocate02 5 TPASS : fallocate(tfile_write_3018:4, 1, 49152, -4096) returned 22 fallocate02 6 TPASS : fallocate(tfile_write_3018:4, 1, -98304, 4096) returned 22 fallocate02 7 TPASS : fallocate(tfile_write_3018:4, 1, 0, 4096) returned 0 [root@dash-01 community]# ./fallocate03 fallocate03 1 TPASS : fallocate(tfile_sparse_3019, 0, 8192, 4096) returned 0 fallocate03 2 TPASS : fallocate(tfile_sparse_3019, 0, 49152, 4096) returned 0 fallocate03 3 TPASS : fallocate(tfile_sparse_3019, 0, 69632, 4096) returned 0 fallocate03 4 TPASS : fallocate(tfile_sparse_3019, 0, 102400, 4096) returned 0 fallocate03 5 TPASS : fallocate(tfile_sparse_3019, 1, 8192, 4096) returned 0 fallocate03 6 TPASS : fallocate(tfile_sparse_3019, 1, 49152, 4096) returned 0 fallocate03 7 TPASS : fallocate(tfile_sparse_3019, 1, 77824, 4096) returned 0 fallocate03 8 TPASS : fallocate(tfile_sparse_3019, 1, 106496, 4096) returned 0 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 |