On Tue, Mar 13, 2001 at 02:05:44PM -0800, Rick Moen wrote:
> > Is there any limitation on the ssh, when I use scp and my files are
> > bigger then 2 Gigabyte, die Copy fails with fhe following error
> > message:
> >
> > hparcp01:/ARCH_01_05_09/20010116/2218/BILLY> scp -r -p
> > BILLY_2028_2218.tar hpdbv03:/ccb/ccb20/pkgeoiad/CCB/DATA/TAR
> > BILLY_2028_2218.tar: Value too large to be stored in data type
>
> I suspect your destination system is a 32-bit Unix variant. Right? If
> so, you're running into a fundamental architecture problem.
>
> All such Unixes use 32-bit integers for file access and locking,
> yielding a maximum size of 2^31 - 1 = 2GB. This is an obstacle for all
That claim is false, unless perhaps you define a "32-bit Unix" as
"a Unix where sizeof(off_t) is 4".
The specific problem in scp is that the version of rcp that most of its
source code was copied from was very old and used a 32-bit printf format
to put the file size (which is sent as ASCII text) on the wire. This is
an implementation issue with the ylonen SCP and it's possible (in fact,
trivial) to write an scp which will interoperate but which does not lose
in this fashion.
Thor