Subject: Re: large file support in sftp

Re: large file support in sftp

From: <>
Date: Tue, 1 Jun 2010 12:36:42 +0200

thanks for your quick reply!

> What kind of problems? Without knowing this we can't possibly hope to

Actually the limit I hit is 2GB. When I try to stat() a file via sftp it
works with 2047 MB, but fails with 2048 MB:

dd if=file.big of=file.big bs=1M count=2047
2047+0 records in
2047+0 records out
2146435072 bytes (2.1 GB) copied, 55.8804 seconds, 38.4 MB/s

NETSSH2: 'size' => 2146435072

dd if=file.big of=file.bigger bs=1M count=2048
2048+0 records in
2048+0 records out
2147483648 bytes (2.1 GB) copied, 48.7559 seconds, 44.0 MB/s

NETSSH2: 'size' => 18446744071562067968

My question was, if libssh2's sftp in general has any file size limits.



Received on 2010-06-01