[Samba] SMB protocol and cached data

Ralph Boehme slow at samba.org
Thu Oct 28 12:27:40 UTC 2021


On 10/27/21 15:54, Ralph Boehme via samba wrote:
> On 10/27/21 15:36, Deas, Jim via samba wrote:
>> I have been warned about sharing the same mount point via SMB and NFS
>> due to samba caching content and potentially corrupting data. What is
>> the real story on this? If samba is not flushing content due to some
>> sort of optimization, can that be switched off in the configuration?
> 
> by default smbd does not cache data. There once was an "write cache 
> size" option but that was removed some time ago.

Fwiw, your question wrt to whether *Samba* was doing any caching is in 
some strict sense answered correctly by saying that Samba does not 
perform any caching.

Otoh, with oplocks and/or leases the *client* can cache data and this 
*can* be problematic with cross-protocol SMB/NFS access if the NFS 
server is not aware of SMB leases/oplocks.

-slow

-- 
Ralph Boehme, Samba Team                 https://samba.org/
SerNet Samba Team Lead      https://sernet.de/en/team-samba
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://lists.samba.org/pipermail/samba/attachments/20211028/c931b320/OpenPGP_signature.sig>


More information about the samba mailing list