uweseimet / scsi2pi

Advanced performant SCSI/SASI emulation and tools for the PiSCSI/RaSCSI board
https://www.scsi2pi.net
BSD 3-Clause "New" or "Revised" License
10 stars 2 forks source link

Add write-through caching mode #60

Closed uweseimet closed 9 months ago

uweseimet commented 9 months ago

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.

uweseimet commented 9 months ago

@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.