UPDATE: I've realized that this seems to be an issue with the compiler
flags used to build samba.
I've realized that i need to define _LARGEFILE_SOURCE, _LARGEFILE64_SOURCE,
and _FILE_OFFSET_BITS=64.
I've done this, but still have no luck reading files larger than 4GB.
Anyone have suggestions?
Thanks,
Matt
> Hi guys,
>
> I'm attempting to move large files (>4GB) from a PowerPC-based
embedded system running a 2.4 kernel architecture to an PC running a 2.6 kernel.
I've got samba compiled, installed, and running on the embedded box. I also
have the directories from the PPC system mounted and accessible from the PC.
>
> I have two problems: larger file sizes do not list correctly, and large
files transferred from the embedded box to the PC are not complete; IE
they're dropping data along the way. I'm familiar with the 2GB file size
limit on samba, and have mounted the PC side using the lfs flag.
>
> Problem 1: Incorrect listing
>
> Here's a list of the directory from the embedded box:
> -r--r--r-- 1 root root 52646396 Jan 5 06:46 file1.ch10
> -r--r--r-- 1 root root 60755936 Jan 5 06:46 file2.ch10
> -r--r--r-- 1 root root 47606684 Jan 5 06:46 file3.ch10
> -r--r--r-- 1 root root 4920604376 Jan 5 05:51 file4.ch10
>
> Here's that same listing, but of the samba mount of that directory on
the PC:
>
> -r-xr-xr-x 1 root root 52646396 Jan 5 2007 file1.ch10 -r-xr-xr-x 1
> root root 60755936 Jan 5 2007 file2.ch10 -r-xr-xr-x 1 root root
> 47606684 Jan 5 2007 file3.ch10 -r-xr-xr-x 1 root root 625637080 Jan 5
> 2007 file4.ch10
>
> As you can see, files 1-3 list fine, but file4 is showing way short.
I'm guessing this might be some sort of overflow condition, any ideas?
>
> Problem 2: Loss of data during transfer of large files.
> When I try to transfer file4, i only get 41xxxxxxxx or so of the total
> file size. This is the more pressing issue.
>
> Also, I cannot mount the samba share using CIFS. I use the line
>
> mount -t smbfs //server/share/ path/to/local/ -o user=u,pass=p,lfs
>
> to mount with SMBFS, and it works correctly, just doesn't display the
large files.
> However, when using the following:
>
> mount -t smbfs //server/share/ path/to/local/ -o user=u,pass=p,lfs
>
> I get "Mount error 5= Input/output error"
>
> Any thoughts?
>
> Thanks,
> Matt
***Teletronics Technology Corporation***
This e-mail is confidential and may also be privileged. If you are not the
addressee or authorized by the addressee to receive this e-mail, you may not
disclose, copy, distribute, or use this e-mail. If you have received this e-mail
in error, please notify the sender immediately by reply e-mail or by telephone
at 267-352-2020 and destroy this message and any copies. Thank you.
*******************************************************************