[Samba] Samba not obeying locking = no from smb.conf file

Andrew Bartlett abartlet at samba.org
Wed Oct 12 12:18:34 GMT 2005


On Tue, 2005-10-11 at 13:59 +0200, StarQuake wrote:
> I have the following share in my smb.conf :
> 
> [cdrom]
>      comment = Samba server's CD-ROM
>      writable = no
>      locking = no
>      path = /media/cdrecorder
>      public = yes
> 
> When I go to that share from a Windows workstation it does still lock as 
> you can see:
> [root at pc843 ~]# lsof | grep cdrecorder
> smbd      9647    root   20w      DIR       22,0       2048       1792 
> /media/cdrecorder
> smbd      9647    root   27r      DIR       22,0       2048       1792 
> /media/cdrecorder
> 
> This prohibits me of ejecting my cdrom when someone's browsing it.
> 
> I have version 3.0.14a-2
> 
> Is this a bug or expected behavior?

This to me looks like Samba simple has the directory open, which is
unrelated to locking.  This is normal, expected behaviour if the client
still has the share open.

Andrew Bartlett

-- 
Andrew Bartlett                                http://samba.org/~abartlet/
Samba Developer, SuSE Labs, Novell Inc.        http://suse.de
Authentication Developer, Samba Team           http://samba.org
Student Network Administrator, Hawker College  http://hawkerc.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.samba.org/archive/samba/attachments/20051012/3dc89f5c/attachment.bin


More information about the samba mailing list