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
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
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. Jeremy.