Lines Matching defs:attribute

202 			status_t		AddAttribute(Attribute* attribute, bool overwrite);
283 /*! Determines if the attribute is shared among all devices or among
341 Attribute* attribute = iterator.Next();
343 || is_special_attribute(attribute->Name(), attrMode))
344 && !attribute->IsProtectedNamespace())
348 // we're artificially limiting the attribute count per inode
360 Attribute* attribute = iterator.Next();
362 && !is_special_attribute(attribute->Name(), attrMode))
363 || attribute->IsProtectedNamespace())
366 uint32 type = B_HOST_TO_BENDIAN_INT32(attribute->Type());
369 uint8 length = strlen(attribute->Name());
371 write(fd, attribute->Name(), length);
373 uint32 size = B_HOST_TO_BENDIAN_INT32(attribute->Size());
376 write(fd, attribute->Data(), attribute->Size());
435 Attribute* attribute = new Attribute(name, type);
436 if (attribute->IsProtectedNamespace()) {
440 delete attribute;
443 if (attribute->SetSize(size) != B_OK
444 || inode->AddAttribute(attribute, true) != B_OK) {
445 delete attribute;
447 read(fd, attribute->Data(), size);
507 fill_stat_buffer(Volume* volume, Inode* inode, Attribute* attribute,
513 if (attribute != NULL) {
514 stat.st_size = attribute->Size();
517 stat.st_type = attribute->Type();
653 // We do not seem to have an attribute file so this is probably the
729 // Add CD:cddbid attribute.
732 // Add CD:do_lookup attribute.
736 // Add CD:toc attribute.
837 // We have an attribute file. Read name from it.
1058 /*! Writes to the attribute and enlarges it as needed.
1059 An attribute has a maximum size of 65536 bytes for now.
1069 // we limit the attribute size to something reasonable
1101 //! Removes all data from the attribute.
1111 /*! Resizes the data part of an attribute to the requested amount \a size.
1112 An attribute has a maximum size of 65536 bytes for now.
1136 // Check if the attribute is in the restricted namespace. Attributes in
1246 Attribute* attribute = iterator.Next();
1247 if (!strcmp(attribute->Name(), name))
1248 return attribute;
1256 Inode::AddAttribute(Attribute* attribute, bool overwrite)
1258 Attribute* oldAttribute = FindAttribute(attribute->Name());
1267 fAttributes.Add(attribute);
1276 Attribute* attribute = new Attribute(name, type);
1277 if (attribute == NULL)
1280 status_t status = attribute->InitCheck();
1282 status = attribute->WriteAt(0, data, &length);
1284 status = AddAttribute(attribute, overwrite);
1286 delete attribute;
1330 Attribute* attribute = iterator.Next();
1331 if (!strcmp(attribute->Name(), name)) {
1333 if (checkNamespace && attribute->IsProtectedNamespace())
1335 // look for attribute in cookies
1339 if (cookie->current == attribute) {
1341 = attribute->GetDoublyLinkedListLink()->next;
1346 delete attribute;
1965 // #pragma mark - attribute functions
2031 Attribute* attribute = cookie->current;
2033 if (attribute == NULL) {
2038 size_t length = strlcpy(dirent->d_name, attribute->Name(), bufferSize);
2043 cookie->current = attribute->GetDoublyLinkedListLink()->next;
2058 Attribute* attribute = inode->FindAttribute(name);
2059 if (attribute == NULL) {
2069 if (attribute->IsProtectedNamespace())
2071 attribute->SetType(type);
2073 attribute->Truncate();
2094 Attribute* attribute = inode->FindAttribute(name);
2095 if (attribute == NULL)
2130 Attribute* attribute = inode->FindAttribute((const char*)_cookie);
2131 if (attribute == NULL)
2134 return attribute->ReadAt(offset, (uint8*)buffer, _length);
2147 Attribute* attribute = inode->FindAttribute((const char*)_cookie);
2148 if (attribute == NULL)
2151 if (attribute->IsProtectedNamespace())
2154 status_t status = attribute->WriteAt(offset, (uint8*)buffer, _length);
2156 notify_attribute_changed(volume->ID(), inode->ID(), attribute->Name(),
2172 Attribute* attribute = inode->FindAttribute((const char*)_cookie);
2173 if (attribute == NULL)
2176 fill_stat_buffer(volume, inode, attribute, *stat);
2271 // attribute directory operations
2278 // attribute operations