I've got the HFS+ filesystem represented by
.dmg image file. For security reasons I'd like to make sure every I/O applies directly to the
.dmg file and not through any kind of memory in the middle.
Is there any way to cancel the option for read and write caching while mounting the filesystem?
During my research (source: Apple Developer) about this I discovered that HFS+ hears contain
attributes field, which refer to volume attributes. One of its containing bits is named
kHFSVolumeNoCacheRequiredBit and this bit is set if the blocks from this volume should not be cached, which is pretty much what I need.
Any idea how to configure this volume properly (command-line, application, API, etc .. )?