[PATCH] cp: use a bigger buffer size when writing zeros

2011-01-31 Thread Pádraig Brady
Another buglet: commit 4a64fd8efe00629b0424bb59c8ec8d9d3ef4542f Author: Pádraig Brady p...@draigbrady.com Date: Mon Jan 31 22:04:35 2011 + cp: use a bigger buffer size when writing zeros * src/copy.c (write_zeros): This bug caused 4 or 8 bytes to be written at a time which is

Re: RFC: new cp option: --efficient-sparse=HOW

2011-01-31 Thread Eric Blake
On 01/31/2011 03:27 PM, Jim Meyering wrote: It's orthogonal. --sparse=always still does the hole-punching, independently of whether we're copying normally or via the efficient FIEMAP-based code. E.g., if you have a sparse file, where one non-sparse chunk contains all-zero blocks

Re: RFC: new cp option: --efficient-sparse=HOW

2011-01-31 Thread Pádraig Brady
On 31/01/11 21:46, Jim Meyering wrote: Now that we have can read sparse files efficiently, what if I want to copy a 20PiB sparse file, and yet I want to be sure that it does so efficiently. Few people can afford to wait around while a normal processor and storage system process that much raw

bug#7948: 16-bit wchar_t on Windows and Cygwin

2011-01-31 Thread Eric Blake
[adding cygwin and coreutils for a wc issue] On 01/30/2011 07:04 PM, Bruno Haible wrote: Hi, It is known for a long time that on native Windows, the wchar_t[] encoding on strings is UTF-16. [1] Now, Corinna Vinschen has confirmed that it is the same for Cygwin = 1.7. [2] POSIX requires