Re: [Yaffs] Can't open files under "/"

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Charles Manning
Date:  
To: yaffs
Subject: Re: [Yaffs] Can't open files under "/"
On Wednesday 20 August 2008 10:18:28 Charles Manning wrote:
> 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:
>
> ///zz//a//d so that it would match with /zz/a/d
>
> I'll look for a fix to this ASAP.


Please try the newly checked in code.,

-- CHarles