]> err.no Git - util-linux/commit
fallocate: new command
authorKarel Zak <kzak@redhat.com>
Tue, 18 Aug 2009 11:33:27 +0000 (13:33 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 22 Sep 2009 13:26:18 +0000 (15:26 +0200)
commitd46a54994e30da03385b82f64eaecffe5c170c92
tree8e6b308066d1744e4801cae9186f44661f69100c
parent34fa5bc8e80b9710fd7841a21755f06be4139f3f
fallocate: new command

The fallocate(1) utility is used to preallocate blocks to a file.

This can be useful for virtual images, database files, testing, etc.
Normally we'd hope that various tools will start using preallocation
internally, but until then such a utility may be useful, and could be
scripted as well.

The original Eric's version is available at:
http://thread.gmane.org/gmane.linux.utilities.util-linux-ng/2490

This version:
 - checks for fallocate glibc function and kernel syscall
 - does not provide a fallback and does not call posix_fallocate()
 - adds long options
 - uses err.h for errro messages
 - adds NLS support
 - cleanups man page

Co-Author: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
AUTHORS
configure.ac
sys-utils/.gitignore
sys-utils/Makefile.am
sys-utils/fallocate.1 [new file with mode: 0644]
sys-utils/fallocate.c [new file with mode: 0644]