waldheinz/fat32-lib — pull request #18 by abbierwolf (2014-09-04 09:48:19+00:00)
Title: Added synchronized blocks to support concurrent reading/writing

I am using FileDisk as a block device and in a multithreaded environment. I got some strange IOExceptions on the read method. fc.read returned -1 but the offset and number of bytes to read where within the limits of the file. Adding synchronized arround the fc calls fixed the problem.