|
From: | Olivier Delhomme |
Subject: | Re: dd (coreutils) 5.97 used power of 10 not 2 for calculating MB |
Date: | Tue, 13 Feb 2007 23:46:58 +0100 |
Le Fri, 26 Jan 2007 22:57:32 +0100, Jim Meyering disait : > Did you ever write a ChangeLog entry or the paragraph of coreutils.texi > describing the new feature? If not, can you do that, and adjust the > patch (below) so that it can be applied to the latest? > > Here's the latest patch I see in the archives: Ok, I propose the new patches below. It adds two options to dd : 'display' and 'dbs'. display let you choose between two modes : - human that will display the statistics in a human readable format - quiet that will not display anything at all Keep in mind that if no display option is provided nothing is changes from the past behaviour of dd. dbs stands for 'display block size'. You may choose from the following three options : - human that will use power of 1024 bytes - si that will use power of 1000 bytes - BYTES that will use power of BYTES bytes The environment variable 'DD_DISPLAY_BLOCK_SIZE' is checked as the default behaviour of the dbs options. If it does not exists it defaults to the old transfer statistics mode. Those two new options affects the transfer statistics (that you can still disable with status=noxfer). 2007-02-13 Olivier Delhomme <address@hidden> * src/dd.c added display=(human|quiet) and dbs=(human|si|BYTES) options * doc/coreutils.texi added some documentation for the new options * TODO killed the lines concerned by this patch Here are some examples : ./dd if=/dev/zero of=/dev/null bs=512k count=123 display=human dbs=si 65M+0 bytes in 65M+0 bytes out 64487424 bytes (65M) copied, 0,001492 s, 44,0G/s ./dd if=/dev/zero of=/dev/null bs=512k count=123 display=human dbs=human 62M+0 bytes in 62M+0 bytes out 64487424 bytes (62M) copied, 0,001592 s, 38G/s ./dd if=/dev/zero of=/dev/null bs=512k count=123 display=human dbs=human status=noxfer 62M+0 bytes in 62M+0 bytes out ./dd if=/dev/zero of=/dev/null bs=512k count=123 123+0 records in 123+0 records out 64487424 bytes (64 MB) copied, 0,001561 s, 41,3 GB/s echo $DD_DISPLAY_BLOCK_SIZE si ./dd if=/dev/zero of=/dev/null bs=512k count=123 123+0 records in 123+0 records out 64487424 bytes (65M) copied, 0,001858 s, 35,0G/s A test script might be needed ? Best regards, -- Olivier Delhomme : http://blog.delhomme.org/ [fr]
2007.02.13.dd_2.patch
Description: Text Data
2007.02.13.coreutils.texi.patch
Description: Text Data
2007.02.13.TODO.patch
Description: Text Data
signature.asc
Description: PGP signature
[Prev in Thread] | Current Thread | [Next in Thread] |