Author: Evgeny Habinsky Date: To: yaffs Subject: [Yaffs] Can't open files under "/"
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?