Akshay Ajayan wrote:
Hi,
I don't know if this is the right place to ask this question, so if it
is not I apologize for sending this mail. I tried to ask this question
on the tuxera forum, but I guess the registration is closed now.
For testing purposes, I wanted to know whether there is anyway to
disable all forms on caching(read, write etc) in ntfs-3g. Or to compile
it with caching disabled. If there is, it would save a lot of time and
effort for my project.
The caches maintained by ntfs-3g can be disabled by redefining
their sizes in include/ntfs-3g/param.h and recompiling.
These are the standard sizes :
#define CACHE_INODE_SIZE 32 /* inode cache, zero or >= 3 and not too
big */
#define CACHE_NIDATA_SIZE 64 /* idata cache, zero or >= 3 and not too
big */
#define CACHE_LOOKUP_SIZE 64 /* lookup cache, zero or >= 3 and not
too big */
#define CACHE_SECURID_SIZE 16 /* securid cache, zero or >= 3 and not
too big */
#define CACHE_LEGACY_SIZE 8 /* legacy cache size, zero or >= 3 and
not too big */
This will have no impact on the caches maintained outside
ntfs-3g.
In the forums, I found that write caching can be disabled using the sync
option, don't know if that still works, as it is not shown in the man page.
The option sync forces synchronous writings to the device,
and has the effect of disabling the write cache. It is not
described in the ntfs-3g manual because it is a standard
mount option.
Of course disabling caches has a bad effect on performance.
Jean-Pierre
_______________________________________________
ntfs-3g-devel mailing list
ntfs-3g-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ntfs-3g-devel