smbstatus and locking in 3.0.21rc1

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

smbstatus and locking in 3.0.21rc1

Thomas Bork-2

Hi,

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?


der tom
______________________________________________________________
Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193

Reply | Threaded
Open this post in threaded view
|

Re: smbstatus and locking in 3.0.21rc1

Thomas Bork-2
Thomas Bork schrieb:

> there is a strange smbstatus output about locked _directories_ in 3.0.21rc1:

\\deveis\public\TEST is a directory (path /public/TEST).

If opening a OpenOffice document from there (3.0.21rc1):

Samba version 3.0.21rc1-01-for-eisfair
PID     Username      Group         Machine
-------------------------------------------------------------------
24527   tb            users         tb3          (192.168.0.15)

Service      pid     machine       Connected at
-------------------------------------------------------
public       24527   tb3           Tue Nov 15 11:45:24 2005
IPC$         24527   tb3           Tue Nov 15 11:57:41 2005
IPC$         24527   tb3           Tue Nov 15 12:09:12 2005

Locked files:
Pid    DenyMode   Access      R/W        Oplock           Name
--------------------------------------------------------------
24527  DENY_WRITE 0x2019f     RDWR       NONE             TEST/bb1.doc
  Tue Nov 15 13:01:43 2005
24527  DENY_NONE  0x100080    RDONLY     NONE             TEST/bb1.doc
  Tue Nov 15 13:01:45 2005
24527  DENY_NONE  0x100001    RDONLY     NONE             .   Tue Nov 15
13:01:35 2005
24527  DENY_NONE  0x100080    RDONLY     NONE             .   Tue Nov 15
13:01:45 2005
24527  DENY_NONE  0x100001    RDONLY     NONE             TEST   Tue Nov
15 13:01:37 2005
24527  DENY_NONE  0x100080    RDONLY     NONE             TEST   Tue Nov
15 13:01:45 2005


The same with 3.0.20b:

deveis # smbstatus

Samba version 3.0.20b-02-for-eisfair
PID     Username      Group         Machine
-------------------------------------------------------------------
29126   tb            users         tb3          (192.168.0.15)

Service      pid     machine       Connected at
-------------------------------------------------------
IPC$         29126   tb3           Tue Nov 15 13:11:29 2005
public       29126   tb3           Tue Nov 15 13:11:29 2005
IPC$         29126   tb3           Tue Nov 15 13:11:29 2005

Locked files:
Pid    DenyMode   Access      R/W        Oplock           Name
--------------------------------------------------------------
29126  DENY_WRITE 0x2019f     RDWR       NONE
/public/TEST/bb1.doc   Tue Nov 15 13:11:38 2005


der tom
Reply | Threaded
Open this post in threaded view
|

Re: smbstatus and locking in 3.0.21rc1

Andrew Bartlett
On Tue, 2005-11-15 at 12:13 +0100, Thomas Bork wrote:
> Thomas Bork schrieb:
>
> > there is a strange smbstatus output about locked _directories_ in 3.0.21rc1:
>
> \\deveis\public\TEST is a directory (path /public/TEST).

My understanding is that this is deliberate (-r 11341)

http://build.samba.org/?function=diff;tree=samba_3_0;date=1130452508;author=jra;revision=11341

Andrew Bartlett

--
Andrew Bartlett                                http://samba.org/~abartlet/
Authentication Developer, Samba Team           http://samba.org
Student Network Administrator, Hawker College  http://hawkerc.net

signature.asc (196 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: smbstatus and locking in 3.0.21rc1

Jeremy Allison
In reply to this post by Thomas Bork-2
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.