title: how to disable caching in CIFS (samba) on client side in linux
body: <p>have developed an application to run on a target with 2.6.10 kernel. A shared folder on a windows machine is mounted via command: </p>
  
  <pre><code>mount -t cifs -o username=xxx,password=xxx,forcedirectio //192.168.170.67/57 /fsRecord
  </code></pre>
  
  <p>As you can understand from the command option <code>forcedirectio</code>, I want to disable caching on the client side. But I can't.</p>
  
  <p>The amount of free RAM on target is 40 MB. When I copy a file sized about 10MB, free RAM size decreases to 30 MB.</p>
  
  <p>The kernel 2.6.10 uses cifs.1.28. I also set oplockEnabled as 0 (in both source code and /proc/fs/cifs/OplockEnabled). But it did not stop caching. How can I disable caching on cifs client for real?</p>