Re: [Zephyr-devel] error while opening file (NFFS)

Vikrant More <vikrant8051@...>

Hi Ram,
I worked with your suggestion & it works.
I took reference from zephyr/tests/subsys/fs/nffs_fs_api/src/test_mount.c this file.


On Tue, Mar 13, 2018 at 3:36 PM, Pallala, Ramakrishna <ramakrishna.pallala@...> wrote:

Hi Vikranth,


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@...]
Sent: Monday, March 12, 2018 4:46 PM
To: Pallala, Ramakrishna <ramakrishna.pallala@...>
Subject: Re: [Zephyr-devel] error while opening file (NFFS)


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:

Hi Vikranth,


Zephyr VFS patches got merged yesterday. These changes are not part of v1.11 but got merged yesterday.


Please refer to the changes needed to comply with VFS under tests/subsys/fs/nffs_fs_api/ on the latest code.





From: [] On Behalf Of Vikrant More
Sent: Monday, March 12, 2018 3:52 PM
Subject: [Zephyr-devel] error while opening file (NFFS)



I upgrade to Zephyr v.1.11 & getting this error while opening file using NFFS

[general] [ERR] fs_open: fs_open:mount point not found!!
error -2 while opening test.txt

It was working perfectly fine with previous version.

Could anybody help me to solve this issue ?



Join to automatically receive all group messages.