Hi, This is regarding support for persistent handles (SMB2_DHANDLE_FLAG_PERSISTENT). We wanted SAMBA share to be continuously available and hence we have set ?smb3 share cap:continuous availability = yes? in smb.conf. When we tested server or network failures we are seeing that the IO gets terminated during network or server failures. We are using Samba 4.20 version We observed that the SMB client is setting SMB2_DHANDLE_FLAG_PERSISTENT as part of SMB2_CREATE_DURABLE_HANDLE_REQUEST but Samba server is not setting this flag as part of SMB2_CREATE_DURABLE_HANDLE_RESPONSE. We are thinking that not setting persistent flag in SMB2_CREATE_DURABLE_HANDLE_RESPONSE by Samba server could be the reason for IO failure. Could you please let us know if it is a known issue or do we need any additional configuration to be done in smb.conf? Thanks & Regards, Srikanth NS
Hi! On 1/7/25 7:03 PM, ., Srikanth N S via samba wrote:> This is regarding support for persistent handles > (SMB2_DHANDLE_FLAG_PERSISTENT). We wanted SAMBA share to be > continuously available and hence we have set ?smb3 share > cap:continuous availability = yes? in smb.conf.Beware!: these are hackish options that merely enable setting protocol capability bits on the wire while the required server behavior is NOT implemented in Samba as of now. Persistent Handles and SMB3 Transparent failover is one of the features funded by STF and is planned for being worked on this year and next. -slow -- SerNet Samba Team Lead https://sernet.de/ Samba Team Member https://samba.org/ SAMBA+ packages https://samba.plus/ -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_signature.asc Type: application/pgp-signature Size: 840 bytes Desc: OpenPGP digital signature URL: <http://lists.samba.org/pipermail/samba/attachments/20250107/142b83a9/OpenPGP_signature.sig>