mirror of https://github.com/digint/btrbk
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
parent
6f32f5d3c9
commit
7a732ce6ce
2
btrbk
2
btrbk
|
@ -1102,7 +1102,7 @@ sub btrfs_send_to_file($$$$;@)
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
push @cmd_pipe, {
|
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},
|
rsh => $target->{RSH},
|
||||||
name => 'dd',
|
name => 'dd',
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue