File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -99,13 +99,13 @@ type VerifierEmitter struct {
9999 TargetDevice * os.File
100100}
101101
102- const chunkSize = int64 (1024 * 1024 ) // 4KB
102+ const chunkSize = int64 (1024 * 1024 ) // 1 MiB
103103var (
104104 ErrFailedToSeek = errors .New ("failed to seek" )
105105 ErrContentsDoNotMatch = errors .New ("source and target device contents do not match" )
106106)
107107
108- // copyBlock will copy chunks of 256 bytes at a time upto to sizeBytes from the source device to the target device.
108+ // copyBlock will copy chunks of 1 MiB at a time upto to sizeBytes from the source device to the target device.
109109func (verifierEmitter * VerifierEmitter ) copyBlock (bmd * api.BlockMetadata ) error {
110110 // Seek to the byteOffset of the source device.
111111 _ , err := verifierEmitter .SourceDevice .Seek (bmd .ByteOffset , io .SeekStart )
You can’t perform that action at this time.
0 commit comments