From 7a732ce6cede35c5ba4fa87d076a3376f7a50926 Mon Sep 17 00:00:00 2001 From: Tobias Grosser Date: Sat, 6 Aug 2016 09:30:26 +0200 Subject: [PATCH] Use 4M block size for dd By default dd uses blocks of size 512 Byte, which does not work well on network mounted fuse file systems (an acd_cli mount). Before this change copying 150MB took more than 5 minutes (I aborted), after this change it takes only 9 seconds. --- btrbk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/btrbk b/btrbk index 0c0dcc7..ab5e6ea 100755 --- a/btrbk +++ b/btrbk @@ -1102,7 +1102,7 @@ sub btrfs_send_to_file($$$$;@) }; } push @cmd_pipe, { - cmd => [ 'dd', 'status=none', "of=${target_path}/${target_filename}.part" ], + cmd => [ 'dd', 'status=none', 'bs=4M', "of=${target_path}/${target_filename}.part" ], rsh => $target->{RSH}, name => 'dd', };