xfsctl sets errno, we need to return this
[libposix_fallocate_xfs.git] / README
blobb3c304d79d3e74835482afb5c1aaf9557fea2709
1 posix_fallocate_xfs README
2 --------------------------
4 see http://www.j3e.de/linux/libposix_fallocate_xfs/
6 This library for use via LD_PRELOAD is aimed for systems which use XFS to make
7 the glibc function posix_fallocate() XFS' efficient preallocation method
8 which can usually only be used via a xfsctl call.
10 If you have Linux kernel 2.6.25 or better AND glibc 2.10 or better you don't
11 need this. In that case posix_fallocate will automatically use fallocate and
12 thus it will use XFS' unwritten extent method to allocate space.
14 Otherwise if you have glibc 2.1.94 or better and any Kernel with XFS you can
15 preload posix_fallocate_xfs.so to speed up preallocation of space with the
16 posix_fallocate() call. Without posix_fallocate_xfs.so glibc's posix_fallocate
17 will manually zero-fill the file.
19 (C)2010 Björn Jacke
20 See LICENSE for full text of GPLv3