diff options
author | Rodrigo Campos | 2014-01-25 20:17:27 +0100 |
---|---|---|
committer | Karel Zak | 2014-02-14 11:00:41 +0100 |
commit | bcd9315d4ba62a225028c47b0423e390e19381f6 (patch) | |
tree | e8b05dda1c4f5df01695b22d9dcc07aed0c61967 /sys-utils/fallocate.1 | |
parent | fallocate: Clarify that space can also be deallocated (diff) | |
download | kernel-qcow2-util-linux-bcd9315d4ba62a225028c47b0423e390e19381f6.tar.gz kernel-qcow2-util-linux-bcd9315d4ba62a225028c47b0423e390e19381f6.tar.xz kernel-qcow2-util-linux-bcd9315d4ba62a225028c47b0423e390e19381f6.zip |
fallocate: Hide #ifdef tricks to call fallocate in a function
Future patches will add more calls to fallocate(), so it will be useful to have
all these tricks inside a function.
The error message when fallocate is not supported is slightly changed: the file
name is not printed as a prefix because is not available in the context of the
function. Also, to only print one of the two possible errors (as happens when
using directly exit()), an else clause was added.
Signed-off-by: Rodrigo Campos <rodrigo@sdfg.com.ar>
Diffstat (limited to 'sys-utils/fallocate.1')
0 files changed, 0 insertions, 0 deletions