Re: [Yaffs] yaffs_mkdir issue when path provided is same as …

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Charles Manning
Date:  
To: yaffs
Subject: Re: [Yaffs] yaffs_mkdir issue when path provided is same as mount point
On Saturday 21 August 2010 10:47:06 Trent Lillehaugen wrote:
> I am using the YAFFS direct interface and have a YAFFS image mounted at
> /image1, that is I have:
>
> image1_partition.param.name = "image1";
> yaffs_AddDevice(&image1_partition);
>
> If I run:
>
> yaffs_mkdir("/image1", 0)
>
> I expect a return value of -1 with the errno set to -EEXIST. However, I
> get a return value of 0. Furthermore when I traverse through the "/image1"
> directory I see an object with the name "objXXX". If I call yaffs_stat
> with this object name it returns -1 and sets the errno to -ENOENT.
>
> Are my expectation incorrect or is this a bug?
>
> Thanks,
> Trent Lillehaugen


Thanks for reporting this issue. It is now fixed in git.

http://yaffs.net/gitweb?p=yaffs2/.git;a=commitdiff;h=213dc0b42fbe8652e454bfdbf9f5c41c6eb4974c;hp=f941e8bcd38698061804775a93a598bace0bfded

-- CHarles