[openbeos] BFS / Attributes
- From: skyos@xxxxxxxxx
- To: openbeos@xxxxxxxxxxxxx
- Date: Fri, 20 Jul 2007 09:48:11 +0200 (CEST)
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
- Follow-Ups:
- [openbeos] Re: BFS / Attributes
- From: Axel Dörfler
- References:
- [openbeos] Re: Bounties
- From: Simon Taylor
Other related posts:
- » [openbeos] BFS / Attributes
- » [openbeos] Re: BFS / Attributes
- [openbeos] Re: BFS / Attributes
- From: Axel Dörfler
- [openbeos] Re: Bounties
- From: Simon Taylor