On Wednesday 28 March 2012 23:41:38 Ezio Zhang wrote:
> as i read the source code of yaffs2 ,i found yaffs2 only store short_name
> in a file's yaffs_object structure.
> when find file by name,it may use the short name to identify the file ,but
> when 2 files have names that the the first few chars are same how to
> distinguish them?
> what's more if uses short name,it will not equal to the given name.so how
> does short name works?
> i think it's my fault but i'm not sure where is the error,could any help
> me. thanks very much.
The short name is only used for short names. Longer names must be fetched from
the object header.
-- Charles