[Samba] smbclient returns incorrect file size for large files
jimmyroe at go.com
Mon Dec 9 15:55:00 GMT 2002
When I connect to a share on an NTFS drive on a Windows 2000 server using smbclient and obtain a directory listing using the 'ls' command, the file size of large files is shown as 259190784. This is not the size of the file according to the Windows GUI which gives 8,849,125,376 bytes (8.24 GB) as the file size.
I have not been able to determine exactly how big a file has to be for the size calculation of smbclient to break, but it's not 259190784 as a file of size 447199232 is shown correctly.
This presents a problem when using smbtar to create a tar archive of the share, smbclient cannot tar the larger files because it is passed the wrong file size, the error:
File size change - truncating FILE to 259190784 bytes
I have tried using samba 2.2.7 and 3.0alpha21 with the same results.
Any assistance you can offer would be very much appretiated.
Get Your Free, Private E-mail at http://mail.go.com
More information about the samba