markh794 / mhvtl

Linux based Virtual Tape Library
http://sites.google.com/site/linuxvtl2/
Other
137 stars 65 forks source link

Change minimum block size to 1 byte to prevent data loss when writing file on size boundary #107

Closed nrichtapeark closed 2 years ago

nrichtapeark commented 2 years ago

If a file is written to a virtual tape device with a size that is 1,2 or 3 bytes larger than the a multiple of 2MB (including zero), the write will drop the additional bytes.

I have create a test script here: https://gist.github.com/nrichtapeark/269ebc51563af6800acad18aef513ca6

markh794 commented 2 years ago

Merged - many thanks

markh794 commented 2 years ago

2nd attempt - merged..