On 04/24/2012 11:48 AM, Jim Meyering wrote:
> Pádraig Brady wrote:
>> On Solaris 10 at least you need to use dd iflag=fullblock
>> to avoid short reads.  Also it's relatively slow when
>> you just want non NUL data as opposed to pseudo random data.
>>
>> * cp/fiemap-empty: Convert /dev/zero rather than using /dev/urandom.
>> * dd/sparse: Likewise.
> 
> Thanks.  Do either of these avoid an actual failure?

no

> With those changes, the affected files are then very compressible.
> With some file system types/options, won't they occupy far fewer
> blocks than before?

Good point.
The dd/sparse one could then fail the alloc check.
The fiemap-empty change is only 5120 bytes too.

OK I'll drop this.

cheers,
Pádraig.

Reply via email to