Re: [Zephyr-devel] error while opening file (NFFS)
Pallala, Ramakrishna <ramakrishna.pallala@...>
The main change is the introduction of mount point which will allow us to have multiple file systems at once. Now the file system mounting responsibility to given to application and it should tie the backend storage which is intended to use.
We have three examples as of today which demonstrate the usage of file systems API’s:
tests/subsys/fs/fat_fs_api/ => Demonstrate FATFS usage, I would suggest you look into it as it is simple and not many files are there.
tests/subsys/fs/nffs_fs_api/ => Demonstrate NFFS usage
tests/subsys/fs/multi-fs/ => Demonstrate both FATFS and NFFS usage together.
Look into the test_*_mount.c files in these tests which will show how to mount a file system from Application.
This feature is destined for v1.12 release and I will add the documentation accordingly.
From: Vikrant More [mailto:vikrant8051@...]
I'm not able to understand it. Why Zephyr did these type of changes when there is no demo examples for modules like NFFS ?
Please help to solve this issue. In tests/subsys/fs/nffs_fs_api/ there are multiple files ....which one to refer ??
What is proper sequence for initialization ?
Please give me sample code to open, read, write & close for file using NFFS as per latest patches.
On Mon, Mar 12, 2018 at 4:06 PM, Pallala, Ramakrishna <ramakrishna.pallala@...> wrote: