[Ovmsdev] Size limit on scp

Mark Webb-Johnson mark at webb-johnson.net
Mon Mar 26 15:37:56 HKT 2018


I can’t imagine sending anything much bigger than flash images to the SD card. Those are around 4MB maximum. Perhaps CAN bus dumps? But those would more likely be downloaded, not uploaded.

How about setting it to 10MB for the moment?

Regards, Mark

> On 25 Mar 2018, at 11:56 PM, Stephen Casner <casner at acm.org> wrote:
> 
> Mark,
> 
> Yes, that limit can definitely be made larger.  It is just part of the
> code validating the command received from the scp client.  I modeled
> that validation code after the scp code in openssh where the size
> validation was checking for the value to fit in off_t, but my mindset
> at the time was that only small files like scripts and configs would
> be transferred.  I wasn't sure about an appropriate off_t definition
> in esp-idf.
> 
> What size limit do you think would be appropriate?
> 
>                                                        -- Steve
> 
> On Sun, 25 Mar 2018, Mark Webb-Johnson wrote:
> 
>> @Steve
>> 
>> Is there any particular reason for this:
>> 
>> $ scp build/ovms3.bin mark at ev914.local:/sd/ovms3.new
>> scp: size unacceptable: 1841760
>> 
>> Can we increase to allow firmware copies to SD?
>> 
>> Regards, Mark.
> _______________________________________________
> OvmsDev mailing list
> OvmsDev at lists.teslaclub.hk
> http://lists.teslaclub.hk/mailman/listinfo/ovmsdev




More information about the OvmsDev mailing list