[PATCH] doc: dd: document that the default block size is 512 bytes

Jim Meyering meyering at redhat.com
Thu Feb 19 11:35:58 UTC 2009


* src/dd.c (usage): Document the default block size.
* doc/coreutils.texi (dd invocation): Document that the default
block size (bs, ibs, obs) is 512 bytes.
Reported by Petr Uzel.
---
 THANKS             |    1 +
 doc/coreutils.texi |    2 ++
 src/dd.c           |    6 +++---
 3 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/THANKS b/THANKS
index bedb01a..f2fcd01 100644
--- a/THANKS
+++ b/THANKS
@@ -446,6 +446,7 @@ Peter Moulder                       reiter at netspace.net.au
 Peter O'Gorman                      bug-coreutils at mlists.thewrittenword.com
 Peter Samuelson                     psamuels at sampo.creighton.edu
 Peter Seebach                       seebs at taniemarie.solon.com
+Petr Uzel                           petr.uzel at suse.cz
 Petter Reinholdtsen                 pere at hungry.com
 Phelippe Neveu                      pneveu at pcigeomatics.com
 Phil Richards                       phil.richards at vf.vodafone.co.uk
diff --git a/doc/coreutils.texi b/doc/coreutils.texi
index 42234d3..8d496ad 100644
--- a/doc/coreutils.texi
+++ b/doc/coreutils.texi
@@ -7605,6 +7605,7 @@ dd invocation
 @cindex input block size
 Set the input block size to @var{bytes}.
 This makes @command{dd} read @var{bytes} per block.
+The default is 512 bytes.

 @item obs=@var{bytes}
 @opindex obs
@@ -7612,6 +7613,7 @@ dd invocation
 @cindex output block size
 Set the output block size to @var{bytes}.
 This makes @command{dd} write @var{bytes} per block.
+The default is 512 bytes.

 @item bs=@var{bytes}
 @opindex bs
diff --git a/src/dd.c b/src/dd.c
index 4604ced..6837b7b 100644
--- a/src/dd.c
+++ b/src/dd.c
@@ -463,16 +463,16 @@ Usage: %s [OPERAND]...\n\
       fputs (_("\
 Copy a file, converting and formatting according to the operands.\n\
 \n\
-  bs=BYTES        read and write BYTES bytes at a time\n\
+  bs=BYTES        read and write BYTES bytes at a time (also see ibs=,obs=)\n\
   cbs=BYTES       convert BYTES bytes at a time\n\
   conv=CONVS      convert the file as per the comma separated symbol list\n\
   count=BLOCKS    copy only BLOCKS input blocks\n\
-  ibs=BYTES       read BYTES bytes at a time\n\
+  ibs=BYTES       read BYTES bytes at a time (default: 512)\n\
 "), stdout);
       fputs (_("\
   if=FILE         read from FILE instead of stdin\n\
   iflag=FLAGS     read as per the comma separated symbol list\n\
-  obs=BYTES       write BYTES bytes at a time\n\
+  obs=BYTES       write BYTES bytes at a time (default: 512)\n\
   of=FILE         write to FILE instead of stdout\n\
   oflag=FLAGS     write as per the comma separated symbol list\n\
   seek=BLOCKS     skip BLOCKS obs-sized blocks at start of output\n\
--
1.6.2.rc1.241.g7bf82



More information about the parted-devel mailing list