bug#9500: [RFC/PATCH] cp: Add option to pre-allocate space for files

2012-05-15 Thread Mark
Hi, [Resending message cc'ed to 9...@debbugs.gnu.org as requested.] On Fri, May 11, 2012 21:36, Pádraig Brady wrote: On 05/11/2012 08:45 PM, Mark wrote: ... I'm using kernel 3.0.0-19-generic #32-Ubuntu here. But probably more relevant, the partition I tested on was ~1.7TB ext4 on an external

bug#9500: [RFC/PATCH] cp: Add option to pre-allocate space for files

2012-05-11 Thread Pádraig Brady
On 05/11/2012 06:40 PM, Mark wrote: Hi, On Fri, May 11, 2012 16:45, Pádraig Brady wrote: On 05/11/2012 04:03 PM, Mark wrote: Here's a patch for cp which adds a new --preallocate option. When specified, cp allocates disk space for the destination file before ... To-do list: - Add

bug#9500: [RFC/PATCH] cp: Add option to pre-allocate space for files

2012-05-11 Thread Mark
On Fri, May 11, 2012 20:19, Pádraig Brady wrote: On 05/11/2012 06:40 PM, Mark wrote: ... An interesting aside: I tried using cp to pre-allocate space for a very large file on an ext4 partition, much larger than the amount of free space. IMHO it would be best for the filesystem to fail

bug#9500: [RFC/PATCH] cp: Add option to pre-allocate space for files

2012-05-11 Thread Pádraig Brady
On 05/11/2012 08:45 PM, Mark wrote: On Fri, May 11, 2012 20:19, Pádraig Brady wrote: On 05/11/2012 06:40 PM, Mark wrote: ... An interesting aside: I tried using cp to pre-allocate space for a very large file on an ext4 partition, much larger than the amount of free space. IMHO it would be