]> git.ipfire.org Git - thirdparty/util-linux.git/commit
fallocate: code optimalizations
authorKarel Zak <kzak@redhat.com>
Wed, 19 Feb 2014 09:48:16 +0000 (10:48 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 19 Feb 2014 09:48:16 +0000 (10:48 +0100)
commitc4172cc3bb1702b7d4fc929877990753f3252a99
tree18ab34604813c2cdf939380440817fc8e3642477
parentc12eff4ce05b2236d9479ffd14c5ae4006caeaf6
fallocate: code optimalizations

Based on Pádraig Brady review:

 * use is_nul() from coreutils rather then memcmp()

 * always call skip_hole() (SEEK_DATA)

 * fix possible overflows

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