false file in use message from client of SAMBA 2.0.6. How do I find out why?

John E. Malmberg wb8tyw at qsl.net
Mon Apr 10 05:38:43 GMT 2000


I am having trouble having a NT 4.0 SP5 client accessing SAMBA 2.0.6 on VMS
to delete a file.  A specific file.  Other test files seem to be able to be
deleted by the client.

The client is reporting:

|C:\>del p:hello2.exe
|P:\HELLO2.EXE
|The process cannot access the file because
|it is being used by another process.

This is not true, and I am unable to find out why SAMBA or the NT thinks the
file is
in use.  As near as I can determine from stepping through the code, it only
checks to see if the file exists, and when TRANS2\call_trans2findfirst sends
the smb message back from finding the file, the client gives that report.

I am trying to find out if there is something that I did wrong in reporting
the file attributes from the host operating system to SAMBA, so I know where
to look further.

The only other thing about the file is that it currently has a size of 0.
However other 0 byte files are deleted just fine.

The SMBD logs the following:

[3] CMS_ROOT:[SAMBA.SOURCE.SMBD]DIR.C;2:(490)
  creating new dirptr 256 for path ./, expect_close = 1
[4] CMS_ROOT:[SAMBA.SOURCE.SMBD]TRANS2.C;2:(751)
  dptr_num is 256, wcard = HELLO2.EXE, attr = 22
[8] CMS_ROOT:[SAMBA.SOURCE.SMBD]TRANS2.C;2:(756)
  dirpath=<./> dontdescend=<>
[8] CMS_ROOT:[SAMBA.SOURCE.SMBD]TRANS2.C;2:(360)
  get_lanman2_dir_entry:readdir on dirptr 0xac9e38 now at offset 1
[8] PROJECT_ROOT:[SAMBA_VMS.LIB]UTIL.C;2:(1394)
  mask_match str=<HELLO.EXE> regexp=<HELLO2.EXE>, case_sig = 0
[8] PROJECT_ROOT:[SAMBA_VMS.LIB]UTIL.C;2:(1575)
  mask_match returning 0
[5] CMS_ROOT:[SAMBA.SOURCE.SMBD]MANGLE.C;2:(338)
  Checking HELLO.EXE for 8.3
[8] CMS_ROOT:[SAMBA.SOURCE.SMBD]TRANS2.C;2:(360)
  get_lanman2_dir_entry:readdir on dirptr 0xac9e38 now at offset 2
[8] CMS_ROOT:[SAMBA.SOURCE.SMBD]DOSMODE.C;1:(82)
  dos_mode: ./HELLO2.EXE
[8] PROJECT_ROOT:[SAMBA_VMS.LIB]UTIL.C;2:(2505)
  is_in_path: ./HELLO2.EXE
[8] PROJECT_ROOT:[SAMBA_VMS.LIB]UTIL.C;2:(2510)
  is_in_path: no name list.
[8] CMS_ROOT:[SAMBA.SOURCE.SMBD]DOSMODE.C;1:(126)
  dos_mode returning a
[5] CMS_ROOT:[SAMBA.SOURCE.SMBD]TRANS2.C;2:(420)
  get_lanman2_dir_entry found ./HELLO2.EXE fname=HELLO2.EXE
[5] CMS_ROOT:[SAMBA.SOURCE.SMBD]MANGLE.C;2:(988)
  name_map_mangle( HELLO2.EXE, need83 = FALSE, cache83 = TRUE, 3 )
[5] CMS_ROOT:[SAMBA.SOURCE.SMBD]MANGLE.C;2:(1023)
  name_map_mangle() ==> [HELLO2.EXE]
[5] CMS_ROOT:[SAMBA.SOURCE.SMBD]MANGLE.C;2:(338)
  Checking HELLO2.EXE for 8.3
[5] CMS_ROOT:[SAMBA.SOURCE.SMBD]TRANS2.C;2:(806)
  call_trans2findfirst - (2) closing dptr_num 256
[4] CMS_ROOT:[SAMBA.SOURCE.SMBD]DIR.C;2:(227)
  closing dptr key 256
[9] CMS_ROOT:[SAMBA.SOURCE.SMBD]TRANS2.C;2:(153)
  t2_rep: params_sent_thistime = 10, data_sent_thistime = 104, useable_space
= 61376
[9] CMS_ROOT:[SAMBA.SOURCE.SMBD]TRANS2.C;2:(155)
  t2_rep: params_to_send = 10, data_to_send = 104, paramsize = 10, datasize
= 104
[6] CMS_ROOT:[SAMBA.SOURCE.LIB]UTIL_SOCK.C;2:(557)
  write_socket(5,178)
[6] CMS_ROOT:[SAMBA.SOURCE.LIB]UTIL_SOCK.C;2:(560)
  write_socket(5,178) wrote 178

The specifics:
Client:
Windows NT 4.0 SP5.

SMBD 2.0.6
OpenVMS 7.2 ALPHA
DEC C 6.0

Thanks in advance for any clues or hints!

-John
wb8tyw at qsl.network




More information about the samba-technical mailing list