Akshay Ajayan wrote:
Hi Jean,
Thanks for the quick reply!
I was able to recompile ntfs-3g by defining all the cache sizes except
CACHE_SECURID_SIZE as 0. But it seems securid cache cannot be
disabled. So I have one more dumb question for you. Can you please
tell me why is that?
This is for avoiding repeatedly translating Linux ownership
and permissions or Posix ACLs into Posix ACLs. Apparently
nobody made the effort of making this optional.
I'm also not sure what type of data/files are stored in the different
caches. So, it would be great if you can point me to some kind of
documentation about ntfs-3g internals, if any.
Googling for "ntfs documentation" leads to available
information.
Thanks again!
Best,
Akshay
On Fri, Jun 21, 2019 at 12:57 AM Jean-Pierre André
<jean-pierre.an...@wanadoo.fr <mailto:jean-pierre.an...@wanadoo.fr>>
wrote:
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
<mailto:ntfs-3g-devel@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/ntfs-3g-devel
_______________________________________________
ntfs-3g-devel mailing list
ntfs-3g-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ntfs-3g-devel