Bug 1416467

Summary: [RFE] Add support for posix_fallocate(3) call in fallocate(1) utility
Product: Red Hat Enterprise Linux 7 Reporter: Denis Chaplygin <dchaplyg>
Component: util-linuxAssignee: Karel Zak <kzak>
Status: CLOSED ERRATA QA Contact: Radka Brychtova <rskvaril>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.5-AltCC: bblaskov, dfediuck, rskvaril
Target Milestone: rcKeywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: util-linux-2.23.2-36.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-01 21:43:41 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: 1380361    

Description Denis Chaplygin 2017-01-25 15:07:47 UTC
Description of problem: At the moment fallocate(1) utility uses fallocate(2) call to preallocate space to a file. That call fails if underlying filesystem, kernel or anything else doesn't support that functionality. On the other hand, posix_fallocate(3) have built-in fallback support and guarantees you, that space will always be preallocated. 

On the other hand, posix_fallocate(3) doesn't supports different preallocation modes, as fallocate(2) does.

It would be nice, if ability switch between different preallocation functions will be added, say with "--posix" key, so users will be able to select between more advanced fallocate(2) based implementation or more robust posix_fallocate(3) implementation.

Comment 8 errata-xmlrpc 2017-08-01 21:43:41 UTC
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/RHBA-2017:2186