Bug 485487

Summary: RFE: System call fallocate(2) not fully available
Product: [Fedora] Fedora Reporter: Jeff Garzik <jgarzik>
Component: glibcAssignee: Jakub Jelinek <jakub>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: esandeen, fweimer, jakub, peterm
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-03-11 12:28:07 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:
Attachments:
Description Flags
Simple test application none

Description Jeff Garzik 2009-02-13 18:45:35 UTC
Created attachment 331855 [details]
Simple test application

Description of problem:
The Linux system call fallocate(2) has an additional 'mode' argument that posix_fallocate(2) does not have.

While glibc does call sys_fallocate internally (if available), it does not fully export fallocate(2) to userspace.

Request that fallocate(2) be fully exported to userspace, both in #include headers as well as a linkable glibc stub.

Version-Release number of selected component (if applicable):
glibc-2.9-3.x86_64

(but I also looked in glibc cvs, main branch)

How reproducible:
always

Steps to Reproduce:
1. Build app according to fallocate(2) man page.
2. Compile app, watch it produce warnings and fail to link.
  
Actual results:
Compile failure.

Expected results:
Successful call to fallocate(2).

Comment 1 Jakub Jelinek 2009-03-11 12:28:07 UTC
glibc-2.9.90-10 exports fallocate.