git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v2 1/1] t0003: Call dd with portable blocksize

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 22, 2023, 16:21 UTC
Message-ID
<xmqqtu0isfom.fsf@gitster.g>
In-Reply-To
<20230122062839.14542-1-tboegi@web.de>
tboegi@web.de writes:
> From: Torsten Bögershausen <tboegi@web.de>
>
> The command `dd bs=101M count=1` is not portable,
> e.g. dd shipped with MacOs does not understand the 'M'.
Very good piece of information to have here.
> Use `bs=1048576 count=101`, which achives the same, instead.
I'd locally tweak (read: no need to resend) it to
    Use `dd bs=1048576 count=101`, which ...
and downcase "Call" on the title line.
A tangent.  I wonder how portable 
    dd bs=1024x1024 count=101
    dd bs=1kx1k count=101

are in practice. "Two or more positive decimal numbers (with or without 'k' or 'b') separated by 'x', specifying the product of the indicated values" is from POSIX, but I haven't used it myself (I know GNU dd groks it).

In any case, thanks for the update.
Previous: tboegi@web.deNext: Torsten Bögershausen
Message 4 of 5 in “t0003: Call dd with portable blocksize”
  1. 1/1 t0003: Call dd with portable blocksizetboegi@web.de, Jan 21, 2023
  2. Junio C HamanoJan 22, 2023
  3. 1/1 t0003: Call dd with portable blocksizetboegi@web.de, Jan 22, 2023
  4. Junio C HamanoJan 22, 2023
  5. Torsten BögershausenJan 22, 2023

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.