allanjude / zxfer

A continuation of development on zxfer, a popular script for managing ZFS snapshot replication
BSD 2-Clause "Simplified" License
123 stars 40 forks source link

-D flag fails with error when run on Linux. #48

Closed zgypa closed 5 years ago

zgypa commented 5 years ago

Using the "1m" abbreviation for block size on dd is not a good idea, as various implementations of dd make use of different abbreviations. Instaed, it seems like both dd implementations take bytes as arguments. So translating 1m to bytes seem to be an easy solution.

replaced obs=1m with obs=1048576 (same for bs=) to be compatible with both BSD and Linux versions of dd.