Re: [Yaffs] i'm puzzled about obj-> short_name,could anyone …

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Charles Manning
Date:  
To: yaffs
CC: Ezio Zhang
Old-Topics: [Yaffs] i'm puzzled about obj->short_name,could anyone help me?
Subject: Re: [Yaffs] i'm puzzled about obj-> short_name,could anyone help me?
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