[Samba] Problem with fileupload on SMB share

Jeremy Allison jra at samba.org
Thu Mar 22 17:27:08 GMT 2007

On Thu, Mar 22, 2007 at 11:07:01AM +0100, Timo Hirt wrote:
> Hello,
> i have got a serious problem with fileuploads on SMB shares. 
> Iam implementing a program that watches a folder for new file and show status e.g. incoming, growing, complete. With FTP and simply copying from another folder on the same box there is no problem. But if i use smb to copy a file to that folder, from the first moment to full filesize is displayed. In this case all my functions return the the full filesize and the program mark these files as complete, even if the upload is in progress. 
> I compared FTP and SMB via watch "ls -la /folder" from the shell. With FTP i could see the file proceeding grow. The file uploaded with smb has full filesize from the first moment.
> Is this a normal behavior of samba? 

Yes it's normal, the Windows client sets the full size
first then slowly fills in the data.


More information about the samba mailing list