Lines Matching defs:attribute

205 			status_t		AddAttribute(Attribute* attribute, bool overwrite);
286 /*! Determines if the attribute is shared among all devices or among
344 Attribute* attribute = iterator.Next();
346 || is_special_attribute(attribute->Name(), attrMode))
347 && !attribute->IsProtectedNamespace())
351 // we're artificially limiting the attribute count per inode
363 Attribute* attribute = iterator.Next();
365 && !is_special_attribute(attribute->Name(), attrMode))
366 || attribute->IsProtectedNamespace())
369 uint32 type = B_HOST_TO_BENDIAN_INT32(attribute->Type());
372 uint8 length = strlen(attribute->Name());
374 write(fd, attribute->Name(), length);
376 uint32 size = B_HOST_TO_BENDIAN_INT32(attribute->Size());
379 write(fd, attribute->Data(), attribute->Size());
438 Attribute* attribute = new(std::nothrow) Attribute(name, type);
439 if (attribute == NULL)
442 if (attribute->IsProtectedNamespace()) {
446 delete attribute;
449 if (attribute->SetSize(size) != B_OK
450 || inode->AddAttribute(attribute, true) != B_OK) {
451 delete attribute;
453 read(fd, attribute->Data(), size);
509 fill_stat_buffer(Volume* volume, Inode* inode, Attribute* attribute,
515 if (attribute != NULL) {
516 stat.st_size = attribute->Size();
519 stat.st_type = attribute->Type();
655 // We do not seem to have an attribute file so this is probably the
731 // Add CD:cddbid attribute.
734 // Add CD:do_lookup attribute.
737 // Add CD:toc attribute.
839 // We have an attribute file. Read name from it.
1065 /*! Writes to the attribute and enlarges it as needed.
1066 An attribute has a maximum size of 65536 bytes for now.
1076 // we limit the attribute size to something reasonable
1108 //! Removes all data from the attribute.
1118 /*! Resizes the data part of an attribute to the requested amount \a size.
1119 An attribute has a maximum size of 65536 bytes for now.
1143 // Check if the attribute is in the restricted namespace. Attributes in
1255 Attribute* attribute = iterator.Next();
1256 if (!strcmp(attribute->Name(), name))
1257 return attribute;
1265 Inode::AddAttribute(Attribute* attribute, bool overwrite)
1267 Attribute* oldAttribute = FindAttribute(attribute->Name());
1276 fAttributes.Add(attribute);
1285 Attribute* attribute = new(std::nothrow) Attribute(name, type);
1286 if (attribute == NULL)
1289 status_t status = attribute->InitCheck();
1291 status = attribute->WriteAt(0, data, &length);
1293 status = AddAttribute(attribute, overwrite);
1295 delete attribute;
1339 Attribute* attribute = iterator.Next();
1340 if (!strcmp(attribute->Name(), name)) {
1342 if (checkNamespace && attribute->IsProtectedNamespace())
1344 // look for attribute in cookies
1348 if (cookie->current == attribute) {
1350 = attribute->GetDoublyLinkedListLink()->next;
1355 delete attribute;
1968 // #pragma mark - attribute functions
2034 Attribute* attribute = cookie->current;
2036 if (attribute == NULL) {
2041 size_t length = strlcpy(dirent->d_name, attribute->Name(), bufferSize);
2046 cookie->current = attribute->GetDoublyLinkedListLink()->next;
2061 Attribute* attribute = inode->FindAttribute(name);
2062 if (attribute == NULL) {
2072 if (attribute->IsProtectedNamespace())
2074 attribute->SetType(type);
2076 attribute->Truncate();
2097 Attribute* attribute = inode->FindAttribute(name);
2098 if (attribute == NULL)
2133 Attribute* attribute = inode->FindAttribute((const char*)_cookie);
2134 if (attribute == NULL)
2137 return attribute->ReadAt(offset, (uint8*)buffer, _length);
2150 Attribute* attribute = inode->FindAttribute((const char*)_cookie);
2151 if (attribute == NULL)
2154 if (attribute->IsProtectedNamespace())
2157 status_t status = attribute->WriteAt(offset, (uint8*)buffer, _length);
2160 attribute->Name(), B_ATTR_CHANGED);
2175 Attribute* attribute = inode->FindAttribute((const char*)_cookie);
2176 if (attribute == NULL)
2179 fill_stat_buffer(volume, inode, attribute, *stat);
2274 // attribute directory operations
2281 // attribute operations