From mboxrd@z Thu Jan 1 00:00:00 1970 From: clement@lassieur.org (=?UTF-8?Q?Cl=C3=A9ment?= Lassieur) Subject: bug#38186: dd doesn't copy whole file when specifying units with bs Date: Tue, 12 Nov 2019 22:45:18 +0100 Message-ID: <87r22chiq9.fsf@lassieur.org> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:35695) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iUdzA-0001qY-Ch for bug-guix@gnu.org; Tue, 12 Nov 2019 16:46:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iUdz9-00072q-81 for bug-guix@gnu.org; Tue, 12 Nov 2019 16:46:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:49700) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iUdz9-00072d-58 for bug-guix@gnu.org; Tue, 12 Nov 2019 16:46:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iUdz8-0005B9-TY for bug-guix@gnu.org; Tue, 12 Nov 2019 16:46:03 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: (Jack Hill's message of "Tue, 12 Nov 2019 15:47:19 -0500 (EST)") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Jack Hill Cc: 38186@debbugs.gnu.org Hi Jack, > It seems that my version of dd from coreutils-8.31 does not seem to work > correctly when using units with the bs option (e.g. bs=1M). In the terminal > session below, I first use bs=1M. The output looks okay: dd appears to have > copied the whole 2.3GiB file, but it has done so impossibly quickly. It turns > out that went so quickly because the whole file has not been copied. If > instead of using the units modifier, I specify the same number of bytes > directly, everything seems to work as expected (notice the slower speed). Does this[1] help? [1]: https://superuser.com/questions/730801/dd-immidiately-completes-but-actually-needs-sync