]> git.ipfire.org Git - thirdparty/util-linux.git/commit
fallocate: use SEEK_DATA on already sparse files
authorKarel Zak <kzak@redhat.com>
Tue, 18 Feb 2014 10:11:56 +0000 (11:11 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 18 Feb 2014 10:38:47 +0000 (11:38 +0100)
commitdb5f00bc880200e5fc83257db7ea6b06853708c5
tree33817d69a490166da97e4af27c057d9ee55f2666
parent9b1b6ed187d769a1ced4bb9c0693f8e5374e5eba
fallocate: use SEEK_DATA on already sparse files

It's more efficient to skip already known holes by SEEK_DATA (seek to
the next area with data).

Thanks to Pádraig Brady.

Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/fallocate.c