syncer.go | 6 +++++- diff --git a/syncer.go b/syncer.go index 3d96ccd8e543fcebd3db5c1059a0da302e2c5a71..3a9e68a23a3e1ca3233e4a604aed966fc8ad3ed6 100644 --- a/syncer.go +++ b/syncer.go @@ -35,7 +35,7 @@ var ( blkSize = flag.Int64("blk", 2*1<<10, "Block size (KiB)") statePath = flag.String("state", "state.bin", "Path to statefile") - dstPath = flag.String("dst", "/dev/ada0", "Path to destination disk") + dstPath = flag.String("dst", "", "Path to destination disk") srcPath = flag.String("src", "/dev/da0", "Path to source disk") ) @@ -53,6 +53,10 @@ func main() { flag.Parse() bs := *blkSize * int64(1<<10) + + if *dstPath == "" { + log.Fatalln("Not destination is specified") + } // Open source, calculate number of blocks var size int64