Just a small update, I understand from HFS+ spec that I can simply create a
RAM disk and this bit will probably be set automatically.

If that's the case, then the solution is to create a RAM disk and copy the
contents to it bypassing the cache.

However, I'd prefer to be based on .dmg based filesystem. is it possible ?

thanks,

Irad

On Mon, Apr 30, 2018 at 2:17 PM, Irad K <iradizat...@gmail.com> wrote:

> I've created empty HFS+ filesystem represented by dmg image file. For
> security reasons I'd like to make sure every IO 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 about this theme, I've discovered that HFS+ header
> contain attributes field, and one of its containing bits in volume
> attributes field named kHFSVolumeNoCacheRequiredBit. It set if we want
> that blocks from this volume wouldn't not be cached, which is pretty much
> what I need. However, i don't have a clue about how to set it on.
>
> Any idea how to configure this volume properly (command-line, application,
> API, etc .. ) ?
>
> thanks,
>
> Irad
>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Filesystem-dev mailing list      (Filesystem-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/filesystem-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to