Skip to content

truncate function not defined for SPIFFS filesystem (IDFGH-316) #2234

@davctv

Description

@davctv

Hello everybody,

truncate() function seems to be NOT implemented for spiffs components. If called, it returns -1
and errno is 88 which description in "\esp-idf\components\newlib\include\sys\errno.h" is

#define ENOSYS 88 /* Function not implemented */

Is it a problem of ESP-IDF or is it a problem of SPIFFS component itself?

As a reference I link a similar issue which is solved (for FATfs):
[(https://github.com//issues/1980)]

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions