[Samba] CTDB potential locking issue

Jeremy Allison
Wed, 19 Sep 2018 18:46:42 -0000

On Wed, Sep 19, 2018 at 07:44:20PM +0100, David C via samba
wrote:
> Hi Martin
>
> I just found the file, it's a config file that about 250 hosts read
every
> half an hour so it makes sense this is getting some contention. However,
> the strange thing is, the share the file is in is a read-only share:
>
> [dist$]
>         comment = Windows dist
>         path = /path/to/share
>         wide links = Yes
>         browseable = Yes
>         read only = Yes
>         guest only = Yes
>         guest ok = Yes
>         public = Yes
>         hide dot files = yes
>         hide files = /$*/
>         hide special files = yes
>
> The share is accessed by the Windows machines to install software, read
> configs etc. I would have thought the share being read only would preclude
> this type of locking behaviour?
>
> Do I need to explicitly disable locking in the share definition?

Read-only shares can still host read-only locks (and full
share mode requests).