[openbeos] BFS / Attributes

Hi!

I'm not sure how BeOS/Haiku wants to handle this, but shouldn't
the BFS function AttributeIterator::GetNext(...) return the length from the 
attribute data itself instead of the length from the attribute name?

If you look at the function:
status_t AttributeIterator::GetNext(char *name, size_t *_length, uint32 *_type, 
ino_t *_id)

you will see that _length is set to different values. 

If the attribute resists in the small data it is set to the attributes name 
length (*_length = item->NameSize()) , else it is set to the attribute data 
length. (*_length = attribute->Size();)

Shouldn't it be set to the attribute data length always?

Thanks, 
   Robert




Other related posts: