Bug 5668 - Confirm for Replace while file copies from local source
Summary: Confirm for Replace while file copies from local source
Status: NEW
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: VFS (show other bugs)
Version: 3.0.28a
Hardware: Other Windows XP
: P3 normal
Target Milestone: none
Assignee: Samba Bugzilla Account
QA Contact: Samba QA Contact
Depends on:
Reported: 2008-08-04 11:46 UTC by SEN
Modified: 2008-08-04 11:46 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description SEN 2008-08-04 11:46:19 UTC
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:


;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)