Re: [Yaffs] object id

Top Page
Attachments:
Message as email
+ (text/plain)
+ (text/html)
Delete this message
Reply to this message
Author: Charles Manning
Date:  
To: Martin Samek
CC: yaffs@lists.aleph1.co.uk
Subject: Re: [Yaffs] object id
On Tue, Mar 31, 2015 at 3:23 AM, Martin Samek <> wrote:

> Hello everyone,
> I have maybe simple question. How is possible, from the object id get way
> and name of file or directory? Can I use function yaffs_find_by_number?
> Input parameter this function will be Object Id.
>
>

It depends on what level you are at.

Yes, the yaffs_find_by_number() function will do this. This is how the
garbage collector and scanning finds the object from the id.

Once you have the obect, you can use the various name functions to get the
object name.

Regards

Charles