mbed-os/features/filesystem
Christopher Haster cc1bad90a7 littlefs: Fixed issue with cleanup in mount function on error
As a part of the v1.6 update, littlefs added proper handling for
cleaning up memory in the case of an error during mount. This took care
of a memory leak users were seeing. Ironically, it turns out the implementation
and user patterns in mbed-os was _relying_ on this memory leak to avoid a
double free in the same case of an error during mount.

The issue was that a failed mount would leave the LittleFileSystem class in a
state where it thought it was mounted, and later it would attempt to
unmount the filesystem. With the previous memory leak this would be
"ok", and the leaked memory would be freed. But with the fix in v1.6,
no memory is leaked, and the incorrect free triggers a hard fault.

Fixed to clean up state properly on failed mounts.
2018-08-21 17:23:32 -05:00
..
bd Add init reference count to all block devices 2018-07-31 19:41:55 +03:00
fat Merge pull request #7660 from deepikabhavnani/namespace_fs_update 2018-08-02 23:04:45 -05:00
littlefs littlefs: Fixed issue with cleanup in mount function on error 2018-08-21 17:23:32 -05:00
Dir.cpp Remove inclusion of mbed.h and mbed namespace from filesystem code 2018-07-31 11:24:42 -05:00
Dir.h Fix doxygen warnings in 'features/filesystem' 2017-06-08 15:48:21 -05:00
File.cpp Remove inclusion of mbed.h and mbed namespace from filesystem code 2018-07-31 11:24:42 -05:00
File.h Correct return type of FileHandle::size() 2017-05-31 15:02:11 +03:00
FileSystem.cpp Remove inclusion of mbed.h and mbed namespace from filesystem code 2018-07-31 11:24:42 -05:00
FileSystem.h Added statvfs API to get storage statistics 2017-12-29 16:42:31 -06:00
mbed_filesystem.h Filesystem: Integrate filesystem classes with common mbed.h entry point 2017-02-24 11:56:45 -06:00
mbed_lib.json Filesystem: Integrate filesystem classes with common mbed.h entry point 2017-02-24 11:56:45 -06:00