[prev in list] [next in list] [prev in thread] [next in thread]
List: coreutils
Subject: Re: dd statistics output
From: Pádraig_Brady <P () draigBrady ! com>
Date: 2014-07-16 22:17:19
Message-ID: 53C6F9EF.5010101 () draigBrady ! com
[Download RAW message or body]
On 07/16/2014 11:09 PM, Christian Groessler wrote:
> On 07/16/14 15:42, Pádraig Brady wrote:
>> Note another reason to _not_ apply the patch is that
>> requests to print the statistics can come async through SIGUSR1,
>> and thus increase the chances of inconsistent output.
>
>
> Sorry, I cannot follow. Which inconsistent output are you referring to?
>
> regards,
> chris
It's a bit of an edge case, but if working with 1024 base quantities,
rarely one might get 1000 based statistics as the selector is essentially:
if ((n_written % 1000) && ! (n_written % 1024))
human_opts |= human_base_1024;
So if SIGUSR1 was sent after 1000 blocks were written for example,
then SI stats would be printed rather than IEC.
Yes it's quite the edge case, and not especially problematic I think,
but worth mentioning.
thanks,
Pádraig.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic