[Samba] Possible bug in SAMBA connection close?

Jon Monroe jon_monroe at imagebuilder.com
Wed Oct 16 18:04:01 GMT 2002

Hey all,

I've been fighting a samba share/unmount problem for several days now and may 
have found a bug in the connect/disconnect code. 

Basically, it seems that while everything claims to free the connection to the 
share, it doesn't actually happen. This is me closing ALL windows to the server:

  jon1 ( connect to service disc1_pc_test as user breakit (uid=501
, gid=501) (pid 2908)
[2002/10/16 10:13:27, 10] smbd/service.c:make_connection(672)
  calling vfs_ops.connect for service disc1_pc_test (options = )
  jon1 ( closed connection to service IPC$
[2002/10/16 10:13:37, 3] smbd/connection.c:yield_connection(48)
  Yielding connection to IPC$
  jon1 ( closed connection to service disc1_pc_test
[2002/10/16 10:13:38, 3] smbd/connection.c:yield_connection(48)
  Yielding connection to disc1_pc_test

Samba version 2.2.5
Service      uid      gid      pid     machine
IPC$         jon_monroe jon_monroe  2908   jon1     ( Wed Oct 16 1
0:10:55 2002

No locked files

lsof disc1_pc_test:
smbd    2908 root   19r   DIR    7,1 2048 65536 /DVD_BURN/disc1/disc_test_pc/
smbd    2908 root   23r   DIR    7,1 2048 65536 /DVD_BURN/disc1/disc_test_pc/

fuser disc1_pc_test:
/DVD_BURN/disc1/disc_test_pc/:  2908

I've tried disabling all cache options I know of, and it hasn't made any 
difference. Here is a snip of my current smb.conf:
        comment                 =       virtual PC volume from ISO image
        path                    =       /DVD_BURN/disc1/disc_test_pc
        guest ok                =       yes
        valid users             =       root, jon_monroe, breakit
        force user              =       breakit
        force group             =       breakit
        oplocks                 =       no
        level2 oplocks          =       no
        read only               =       yes
        posix locking           =       no
        locking                 =       no

This is on a RH8.0 x86 box, running K 2.4.18, and self installed samba 2.2.5.

Due to the specific use, I can't use the pre/post exec functions for the 
unmount, though I don't see how it would make a difference.

So, is there something I'm missing? Something else to try? Is this behavior 
normal? :) 

Thanks for any help!


More information about the samba mailing list