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.
pull/100/head
Tobias Grosser 2016-08-06 09:30:26 +02:00
parent 6f32f5d3c9
commit 7a732ce6ce
1 changed files with 1 additions and 1 deletions

2
btrbk
View File

@ -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',
};