Re: [RFC/PATCH] cp: Add option to pre-allocate space for files
From:
Philipp Thomas
Subject:
Re: [RFC/PATCH] cp: Add option to pre-allocate space for files
Date:
Tue, 12 Jun 2012 13:37:38 +0200
User-agent:
Mutt/1.5.21 (2010-09-15)
* Pádraig Brady (address@hidden) [20120511 17:46]:
> This feature is already under consideration.
> See the comments at: http://bugs.gnu.org/9500
FWIW, SUSE patches coreutils (patch attached) to use fallocate when
sparse=never or non-sparse files with sparse=auto (!make_holes in
copy.c(copy_reg). But as Eric wrote in the above thread, it would need a
gnulib module for a correct implementation.
BTW, biggest win is for ocfs2 as it must take cluster wide locks on
fragmentation, which was the reason we added the patch.
Philipp