From a98f505c8fff01a22eb0d983490e66d1c5620df1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Wed, 31 Jul 2019 17:42:20 +0200 Subject: [PATCH] Use 128k blocks when importing volume data Cloning volume was handled earlier, now od the same on importing volumes (any storage). Fixes QubesOS/qubes-issues#5134 --- qubes-rpc/admin.vm.volume.Import | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qubes-rpc/admin.vm.volume.Import b/qubes-rpc/admin.vm.volume.Import index 4bfaa70f..f41ee987 100755 --- a/qubes-rpc/admin.vm.volume.Import +++ b/qubes-rpc/admin.vm.volume.Import @@ -43,7 +43,7 @@ size=$(tail -c +3 "$tmpfile"|cut -d ' ' -f 1) path=$(tail -c +3 "$tmpfile"|cut -d ' ' -f 2) # now process stdin into this path -if sudo dd bs=4k of="$path" count="$size" iflag=count_bytes,fullblock \ +if sudo dd bs=128K of="$path" count="$size" iflag=count_bytes,fullblock \ conv=sparse,notrunc,nocreat,fdatasync status=none; then status="ok" else