smbstatus and locking in 3.0.21rc1

Jeremy Allison jra at samba.org
Tue Nov 15 14:48:08 GMT 2005


On Tue, Nov 15, 2005 at 10:05:09AM +0100, Thomas Bork wrote:
> 
> there is a strange smbstatus output about locked _directories_ in 3.0.21rc1:
> 
> If opening \\deveis\public with explorer with 3.0.21rc1 I have following 
> output with smbstatus:
> 
> deveis # smbstatus
> 
> Samba version 3.0.21rc1
> PID     Username      Group         Machine
> -------------------------------------------------------------------
> 27991   tb            users         tb3          (192.168.0.15)
> 
> Service      pid     machine       Connected at
> -------------------------------------------------------
> tb           27991   tb3           Tue Nov 15 10:41:02 2005
> pr1          27991   tb3           Tue Nov 15 10:41:02 2005
> IPC$         27991   tb3           Tue Nov 15 10:41:02 2005
> public       27991   tb3           Tue Nov 15 10:41:02 2005
> 
> Locked files:
> Pid    DenyMode   Access      R/W        Oplock           Name
> --------------------------------------------------------------
> 27991  DENY_NONE  0x100001    RDONLY     NONE             .   Tue Nov 15 
> 10:41:03 2005
> 
> The same with 3.0.20b:
> 
> Samba version 3.0.20b-02-for-eisfair
> PID     Username      Group         Machine
> -------------------------------------------------------------------
> 30828   tb            users         tb3          (192.168.0.15)
> 
> Service      pid     machine       Connected at
> -------------------------------------------------------
> IPC$         30828   tb3           Tue Nov 15 10:50:43 2005
> tb           30828   tb3           Tue Nov 15 10:50:43 2005
> pr1          30828   tb3           Tue Nov 15 10:50:43 2005
> public       30828   tb3           Tue Nov 15 10:50:43 2005
> 
> No locked files
> 
> 
> If opening \\deveis\public\TEST with explorer with 3.0.21rc1 I have 
> following output with smbstatus:
> 
> deveis # smbstatus
> 
> Samba version 3.0.21rc1
> PID     Username      Group         Machine
> -------------------------------------------------------------------
> 27991   tb            users         tb3          (192.168.0.15)
> 
> Service      pid     machine       Connected at
> -------------------------------------------------------
> tb           27991   tb3           Tue Nov 15 10:41:02 2005
> pr1          27991   tb3           Tue Nov 15 10:41:02 2005
> IPC$         27991   tb3           Tue Nov 15 10:41:02 2005
> public       27991   tb3           Tue Nov 15 10:41:02 2005
> 
> Locked files:
> Pid    DenyMode   Access      R/W        Oplock           Name
> --------------------------------------------------------------
> 27991  DENY_NONE  0x20089     RDONLY     NONE             TEST   Tue Nov 
> 15 10:45:10 2005
> 27991  DENY_NONE  0x100001    RDONLY     NONE             TEST   Tue Nov 
> 15 10:45:10 2005
> 
> 
> The same with 3.0.20b:
> 
> deveis # smbstatus
> 
> Samba version 3.0.20b-02-for-eisfair
> PID     Username      Group         Machine
> -------------------------------------------------------------------
> 30828   tb            users         tb3          (192.168.0.15)
> 
> Service      pid     machine       Connected at
> -------------------------------------------------------
> IPC$         30828   tb3           Tue Nov 15 10:50:43 2005
> tb           30828   tb3           Tue Nov 15 10:50:43 2005
> pr1          30828   tb3           Tue Nov 15 10:50:43 2005
> public       30828   tb3           Tue Nov 15 10:50:43 2005
> 
> No locked files
> 
> Is this normal?

It is now :-). In order to re-imlement delete on close for
directories after the open code rewrite I had to add directory
opens into the share mode tdb. It's actually closer to how
Windows does things internally.

Jeremy.


More information about the samba-technical mailing list