Re: [Yaffs] how to determin the parameter of yffs?

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: TJ
Date:  
To: yaffs
Subject: Re: [Yaffs] how to determin the parameter of yffs?
On Fri, 2011-12-02 at 14:55 +0800, 张磊 wrote:
> in the source code ,i found many macro definition such
> as YAFFS_TNODES_MAX_LEVEL,YAFFS_NTNODES_INTERNAL and so on,
> i very much like to know how to determin these?if i want to change
> some of them,what's the princple i should follow?


Constant definitions are usually defined in header files. To locate them
it is often easiest to do something like:


yaffs2$ grep -rn YAFFS_TNODES_MAX *

utils/yaffs_guts.h:39:#define YAFFS_TNODES_MAX_LEVEL        6
yaffs_guts.c:815:    if (level < 0 || level > YAFFS_TNODES_MAX_LEVEL)
yaffs_guts.c:871:        file_struct->top_level > YAFFS_TNODES_MAX_LEVEL)
yaffs_guts.h:39:#define YAFFS_TNODES_MAX_LEVEL        6


yaffs2$