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

Top Pagina
Bijlagen:
Bericht als e-mail
+ (text/plain)
Delete this message
Reply to this message
Auteur: Charles Manning
Datum:  
Aan: yaffs
CC: Ezio Zhang
Oude Onderwerpen: [Yaffs] i'm puzzled about obj->short_name,could anyone help me?
Onderwerp: 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