On Sunday 13 February 2011 04:52:00 HuangAlex wrote: > Hi all, > > I notice that the change of ObjectId is not strictly continuous. For > example, if the object is file it may be change as 0x101, 0x102, but when > it comes to directory, the objectid may become 0x200, 0x300. So here is the > problem, is there some law that i can caculate the number of all kinds of > file based on the objectid? For example, if we randomly chose a chunk and > it object id is 50, so in my opinion, the total number of file should at > least 50. But we see above the object id for directory is not continuous. > Please help me to solve this problem.Thank you all. Object ids are not allocated sequentially and it cannot be used to calculate the number of objects. If you really want a quick way to know how many objects are allocated then you would have to look at the allocator. n_obj_created - n_obj_free Charles