An additional caching mode "write-through" that does not cache write operations to image files shall be added. After each write operation (WRITE or WRITE LONG) the image file data are flushed. This improves data consistency on write operations, but slows writing sectors down.
Rename the caching mode "off" to "linux", because the linux filesystem layer has its default caching.
@Pacjunk In case you are still interested in a solution to https://github.com/PiSCSI/piscsi/issues/335, this new feature in SCSI2Pi (current develop branch) is probably the best that you will get.
An additional caching mode "write-through" that does not cache write operations to image files shall be added. After each write operation (WRITE or WRITE LONG) the image file data are flushed. This improves data consistency on write operations, but slows writing sectors down.
Rename the caching mode "off" to "linux", because the linux filesystem layer has its default caching.