Max file size in le_fs

Hi

I’m using the File system service api le_Fs.h but when using le_fs_Read() I only get the first 40k of the file. Is this a limitation on the file system API or is there another explanation?

In legato 16.10.3 there was a “define LE_FS_DATA_MAX_SIZE 8192” but can’t find anyting about any file size limitation in legato 19.04.

Hi nilsa,
Would you please share your app code and step to reproduce?
Which Legato version you tried and faced this issue?

In my case, testing on 17.06 seems ok, which can read 100k without issue.

Thx

Hi @nilsa,

I’ve made the test on wp7607 platform using Legato 19.02 (which is the latest stable Legato version for this platform) and faced no issues.
Please find attached my test app.
fsTestApp.tar.bz2 (1.6 MB)
In order to test it, please copy “test.txt” file under “/data/le_fs/home/root” and run:
app start fsTestApp
Hope it helps!

Regards,
hri

Sorry about the delay but tested your app now and this is the result:

On WP7607-1 with LE19.04

Nov 12 13:12:40 swi-mdm9x28-wp user.info Legato: INFO | fsTestApp[11647] | d-beaten wind-bell wind-bells Windber windberry windbibber windblast wind-blazing windblown wind-blown windboat windbore wind-borne windbound wind-bound windbracing windbreak Windbreaker windbreaks wi
Nov 12 13:12:40 swi-mdm9x28-wp user.info Legato: INFO | supervisor[837]/supervisor T=main | proc.c proc_SigChildHandler() 2077 | Process ‘fsTestApp’ (PID: 11647) has exited with exit code 0.
Nov 12 13:12:40 swi-mdm9x28-wp user.info Legato: INFO | supervisor[837]/supervisor T=main | app.c app_StopComplete() 4751 | app ‘fsTestApp’ has stopped.
Nov 12 13:12:40 swi-mdm9x28-wp user.info Legato: INFO | supervisor[837]/supervisor T=main | apps.c DeactivateAppContainer() 374 | Application ‘fsTestApp’ has stopped.

I suppose it should end with Successful FS test?