bugfix: during inode update the file name might be corrupted

While inode is updated it is possible that Garbage Collection
is called which caused overwrite of inode's filename as the same
buffer was used to keep the filename and copping data in GC.

This patch uses buffer on the stack for keeping filename while inode
is updated which fix the issue.

The patch cause 128 B increase of stack consumption.

Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
1 file changed
tree: 4dd321b14fd0d512d493f8ca9de01d9b2933fb79
  1. include/
  2. src/
  3. test/
  4. design.txt
  5. pkg.yml
  6. README.md
  7. syscfg.yml
README.md

Overview

The Newtron Flash File System (NFFS) is a flash file system with the following priorities:

  • Minimal RAM usage
  • Reliability

RTOS support

NFFS currently supports the following operating systems:

Repository

The source code for NFFS lives in the following repository on GitHub:

All changes to the NFFS codebase should be submitted as Pull Request to the repository above.

Issues

Issues must be reported to the Mynewt Jira: https://issues.apache.org/jira/projects/MYNEWT Use the ‘NFFS’ component when reporting bug against the Apache Mynewt project.