The prerequisites for supporting durable handles[1] in Samba include
disabling the mapping of POSIX locks, as well as setting the `kernel
oplocks` and `kernel sharemodes` parameters to disabled. Currently
this configuration is hard‑coded, but in the future it could be made
conditional and combined with other settings to enable persistent
handles on continuously available shares.
[1] https://www.samba.org/samba/docs/current/man-html/smb.conf.5.html#DURABLEHANDLES
Signed-off-by: Anoop C S <anoopcs@cryptolab.net>
"disable spoolss" = "yes"
"guest ok" = "no"
"smbd profiling level" = "on"
+ "posix locking" = "no"
[globals.domain.options]
security = "USER"
workgroup = "STANDALONE1"
"disable spoolss" = "yes"
"guest ok" = "no"
"smbd profiling level" = "on"
+ "posix locking" = "no"
[globals.domain.options]
security = "ads"
workgroup = "DOMAIN1"
'kernel share modes': 'no',
'x:ceph:id': f'{share.cluster_id}.{share.share_id}',
'smbd profiling share': 'yes',
+ 'posix locking': 'no',
}
}
if share.comment is not None: