[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Using SCP with files > 4 GB


Aris,

Yes, I am happy to say that Ipswitch plans on using libssh
in a piece of software currently being developed.
I am pleased by the stability of the package.

Actually, I haven't and I don't think our quality assurance
people have yet tried transferring files > 4 GB using SCP.
It's clear from the current client code that this would fail.

I don't know how well other clients and servers fare with such 
files on SCP.  This is our first experience with SCP.

We'll certainly be testing it.  I'll post our experiences here.

I think that upgrading a parameter from 32 bits to 64 bits is safe
on ia32, but I will defer to your judgement and go with the new function.

Mark R

-----Original Message-----
From: Aris Adamantiadis [mailto:aris@xxxxxxxxxxxx] 
Sent: Tuesday, April 05, 2011 2:45 PM
To: libssh@xxxxxxxxxx
Subject: Re: Using SCP with files > 4 GB

Hi Mark,

This is a good idea. I just wonder if you have experience with server
softwares that handle/mishandle >4G files using scp ? This could become
source of problem for libssh users and it would be important then to
test if the remote server supports it.

I'm in favor of the ssh_scp_push_file64 which is not going to break the
ABI (upgrading a parameter from 32 to 64bits is imho not safe on ia32).

By the way, is Ipswitch using libssh in some of their products ? I'd be
interested to know.

Thanks for your feedback,

Aris


Le 5/04/11 17:50, Mark Riordan a écrit :
> I would like to enhance libssh to allow SCP transfer of files with sizes
> that won't fit into 32 bits.
> 
>  
> 
> Here's what I propose to do:
> 
>  
> 
> Change ssh_scp_request_get_size() to return a 64-bit type rather than
> size_t, which is 32 bits on some systems.
> 
>  
> 
> Either change ssh_scp_push_file(ssh_scp scp, const char *filename,
> size_t size, int perms) so that the third parameter is a 64-bit type
> (compilers should promote existing calls with 32-bit size to 64-bit
> size) or, less preferably, introduce ssh_scp_push_file64 which takes a
> 64-bit size.
> 
>  
> 
> Do you have any feedback on this?
> 
>  
> 
> Thanks.
> 
>  
> 
> Mark R
> 




References:
Using SCP with files > 4 GB"Mark Riordan" <mriordan@xxxxxxxxxxxx>
Re: Using SCP with files > 4 GBAris Adamantiadis <aris@xxxxxxxxxxxx>
Archive administrator: postmaster@lists.cynapses.org