[Samba] Problem with fileupload on SMB share

Timo Hirt TimoHirt at gmx.de
Thu Mar 22 10:07:01 GMT 2007


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? 

Iam using SLES 9 Samba 3.0.4, Kernel 2.6.5-7, Java 1.4_07 for programming

cheers

Timo

 


More information about the samba mailing list