Im create VFS module (convert from Samba 2.2.x to Samba 3.0.28a)
in Samba 2.2.x problem was too.
Client: Windows XP
Server: Ubuntu 8.04
VFS: Level mode as Transparent or Opaque...
Im have a problem:
When new file copies from local folder to samba folder Im get message:
"File FFFF.EXE exist, Replace file size 0 with new file size 1000... [Yes][No]"
;In samba log file:
Stat FFFF.EXE - ENOENT
;first create file was here:
Open fd 0 with flags O_CREATE | O_EXCL | O_WRONLY -- file create with this
Close fd 0
;my VFS create it becouse it O_CREATE|O_EXCL|O_WRITE then
;SAMBA test on exist
;open_file_ntcreate: FILE_CREATE requested for file
;FFFF.EXE and file already exists.
Stat FFFF.EXE - OK (one or more times)
;second create files (Im press [Yes] for replace confirm)
Open fd 0 with flags O_CREATE | O_WRONLY
Close fd 0
File replaced ok...
if Im press [No], file was created with size 0... becouse Open for create call before this message...
Some times all work right (without this message) if file have size lowest ~5Кб (may be is it buffered?).
Is it bug or error in my config (Default config for Ubuntu 8.04)