Bug 1476120
Summary: | glibc headers don't include linux/falloc.h, and therefore doesn't include fallocate() flags | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | David Gibson <dgibson> |
Component: | glibc | Assignee: | DJ Delorie <dj> |
Status: | CLOSED ERRATA | QA Contact: | Sergey Kolosov <skolosov> |
Severity: | medium | Docs Contact: | Vladimír Slávik <vslavik> |
Priority: | unspecified | ||
Version: | 7.4 | CC: | ashankar, codonell, dj, fweimer, mcermak, mdeng, mnewsome, pfrankli, vslavik |
Target Milestone: | rc | Keywords: | Patch, TestBlocker |
Target Release: | --- | ||
Hardware: | All | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | glibc-2.17-237.el7 | Doc Type: | Bug Fix |
Doc Text: |
`fallocate()` flags again available as per documentation
Previously, the `fcntl.h` header file from the _glibc_ package did not include flags for the `fallocate()` function. As a consequence, programs using `fallocate()` according to the man page did not compile. The missing flags have been added by indirect inclusion of the `<linux/falloc.h>` file and compilation of such programs is again possible.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2018-10-30 09:36:35 UTC | Type: | Bug |
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: | 1505884 |
Description
David Gibson
2017-07-28 05:46:47 UTC
The fallocate() flags are used by one of the testcases in libhugetlbfs which is used for testing hugepages on various systems. Relevant upstream commit: commit 257dabc059447934a90be6fce4b5d2a5f4b63dfd Author: Joseph Myers <joseph> Date: Wed Dec 14 18:23:15 2016 +0000 Include <linux/falloc.h> in bits/fcntl-linux.h. This patch makes bits/fcntl-linux.h include <linux/falloc.h> to define the FALLOC_* flags under __USE_GNU (linux/falloc.h defines only those bits, nothing else). Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2018:3092 |