mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
26932271a8
Protect smbd against version incompatibilities in a cluster. At first startup smbd locks "samba_version_string" and writes its version string. It then downgrades the lock to a read lock. Subsequent smbds check against the version string and also keep the read lock around. If the version does not match, we try to write our own version. But as there's a read lock, the lock upgrade to write lock will fail due the read lock being around. So as long as there's one smbd with this read lock, no other version of smbd will be able to start. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
17 lines
652 B
XML
17 lines
652 B
XML
<samba:parameter name="allow unsafe cluster upgrade"
|
|
context="G"
|
|
type="boolean"
|
|
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
|
|
<description>
|
|
<para>If set to no (the default), smbd checks at startup if
|
|
other smbd versions are running in the cluster and refuses to
|
|
start if so. This is done to protect data corruption in
|
|
internal data structures due to incompatible Samba versions
|
|
running concurrently in the same cluster. Setting this
|
|
parameter to <value type="example">yes</value> disables this
|
|
safety check.
|
|
</para>
|
|
</description>
|
|
<value type="default">no</value>
|
|
</samba:parameter>
|