coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] maint: avoid reading lots of data from /dev/urandom


From: Pádraig Brady
Subject: Re: [PATCH] maint: avoid reading lots of data from /dev/urandom
Date: Tue, 24 Apr 2012 12:15:32 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0) Gecko/20110816 Thunderbird/6.0

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

[Prev in Thread] Current Thread [Next in Thread]