Stepan Belousov
Stepan Belousov
The bug is there: https://github.com/tracmap/libaums/blob/develop/libaums/src/main/java/com/github/mjdev/libaums/driver/scsi/ScsiBlockDevice.kt#L258 `inBuffer` may already contain data from previous reads (e.g., when we call `rootDirectory.listFiles()`, and filenames span over multiple clusters). `inBuffer.clear()` wipes all that data.
Just in case, maybe it could be helpful. Fixed that in our fork: https://github.com/tracmap/libaums/commit/7b9219106419142dec6b1a179067037a9e73c18d Seems to work fine now. That's not an elegant solution (I just create a temporary buffer...
Any updates on this one?
@magnusja The test does not work because it does not really call the `transferOneCommand` function from `ScsiBlockDevice.kt` (that contains the actual bug). This can be observed by adding `throw IOException("FAIL")`...