Re: Support for disk full detection using LittleFS

2021-05-30 Thread Takashi Yamamoto
On Fri, May 28, 2021 at 9:21 PM Flavio Castro Alves Filho wrote: > > Hello, > > I am using LittleFS to store information on an external dataflash. > > I need to know if the memory is full. I saw that the nsh provides the > df command, which as far as I understood is a cat for /proc/fs/usage > file

Re: Support for disk full detection using LittleFS

2021-05-30 Thread Xiang Xiao
On Fri, May 28, 2021 at 8:21 PM Flavio Castro Alves Filho < flavio.al...@gmail.com> wrote: > Hello, > > I am using LittleFS to store information on an external dataflash. > > I need to know if the memory is full. I saw that the nsh provides the > df command, which as far as I understood is a cat f

Support for disk full detection using LittleFS

2021-05-28 Thread Flavio Castro Alves Filho
Hello, I am using LittleFS to store information on an external dataflash. I need to know if the memory is full. I saw that the nsh provides the df command, which as far as I understood is a cat for /proc/fs/usage file. In my code, I could see the LFS message indicating LFS_ERR_NOSPC, which is an