POSIX says the truncated things are "record(s)" not "block(s)":
http://pubs.opengroup.org/onlinepubs/9699919799/utilities/dd.html

That's what it's historically been too:
http://minnie.tuhs.org/cgi-bin/utree.pl?file=V7/usr/src/cmd/dd.c
http://minnie.tuhs.org/cgi-bin/utree.pl?file=4.3BSD-Reno/src/bin/dd/dd.c

It sounds odd since bs= implies block sizes, not record sizes, so
perhaps there's a reason to not want to change it? Idk...

If it is to be changed, perhaps it makes sense to change the last
remaining "blocks" for odd length swabs (a few lines above this one)
too for consistency.

Index: misc.c
===================================================================
RCS file: /cvs/src/bin/dd/misc.c,v
retrieving revision 1.18
diff -u -p -r1.18 misc.c
--- misc.c      12 Feb 2014 01:18:36 -0000      1.18
+++ misc.c      17 Mar 2015 02:04:46 -0000
@@ -83,8 +83,8 @@ summary(void)
        }
        if (st.trunc) {
                (void)snprintf(buf[2], sizeof(buf[2]),
-                   "%zu truncated %s\n",
-                    st.trunc, (st.trunc == 1) ? "block" : "blocks");
+                   "%zu truncated %s\n",
+                    st.trunc, (st.trunc == 1) ? "record" : "records");
                iov[i].iov_base = buf[2];
                iov[i++].iov_len = strlen(buf[2]);
        }

Reply via email to