Author: Charles Manning Date: To: yaffs Subject: Re: [Yaffs] Can't open files under "/"
On Tuesday 19 August 2008 20:00:54 Evgeny Habinsky wrote: > I found that after upgrading to the latest version of YAFFS I'm no
> longer able to create files in root directory. My flash is mounted as
> "/" and it seems like yaffsfs_FindDevice() does not allow to open files
> directly under "/".
>
> I am trying to open /testfile for writing. Before matching the file
> prefix to YAFFS device prefix yaffsfs_FindDevice() strips leading
> slashes from both file name and the device prefix. This means it will
> try to match "testfile" to "\0" which fails.
>
> Was this change introduced intentionally to prevent mounting under root?
THis is a bug introduced when cleaning up an issue with handling multiple /.
The intention was to get rid of redundant / in something like: