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


Pallala, Ramakrishna <ramakrishna.pallala@...>
 

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.

 

Thanks,

Ram

 

From: Vikrant More [mailto:vikrant8051@...]
Sent: Monday, March 12, 2018 4:46 PM
To: Pallala, Ramakrishna <ramakrishna.pallala@...>
Cc: zephyr-devel@...; zephyr-users@...
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.

 

Thanks,

Ram

 

From: zephyr-devel-bounces@... [mailto:zephyr-devel-bounces@...] On Behalf Of Vikrant More
Sent: Monday, March 12, 2018 3:52 PM
To: zephyr-devel@...; zephyr-users@...
Subject: [Zephyr-devel] error while opening file (NFFS)

 

Hello,

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 users@lists.zephyrproject.org to automatically receive all group messages.