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

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Trent Lillehaugen
Date:  
To: yaffs@lists.aleph1.co.uk
Subject: [Yaffs] yaffs_mkdir issue when path provided is same as mount point
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



This e-mail is the property of RED Digital Cinema Camera Company. It is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential, or otherwise protected from disclosure. Distribution or copying of this e-mail, or the information contained herein, to anyone other than the intended recipient is prohibited.