Lines Matching refs:inode

229 			void			SetNext(Inode *inode) { fNext = inode; }
337 write_attributes(int fd, Inode* inode, attr_mode attrMode = kDiscIDAttributes)
341 AttributeList::ConstIterator iterator = inode->Attributes();
351 // we're artificially limiting the attribute count per inode
414 read_attributes(int fd, Inode* inode)
450 || inode->AddAttribute(attribute, true) != B_OK) {
509 fill_stat_buffer(Volume* volume, Inode* inode, Attribute* attribute,
513 stat.st_ino = inode->ID();
521 stat.st_size = inode->Size() + sizeof(wav_header);
522 stat.st_blocks = inode->Size() / 512;
523 stat.st_mode = inode->Type();
530 stat.st_uid = inode->UserID();
531 stat.st_gid = inode->GroupID();
535 stat.st_mtim.tv_sec = stat.st_ctim.tv_sec = inode->ModificationTime();
537 stat.st_crtim.tv_sec = inode->CreationTime();
597 Inode* inode;
600 for (inode = fFirstEntry; inode != NULL; inode = next) {
601 next = inode->Next();
602 delete inode;
712 Inode* inode = _CreateNode(fRootNode, title, startFrame, frames,
714 if (inode == NULL)
719 inode->AddAttribute("Audio:Artist", B_STRING_TYPE,
721 inode->AddAttribute("Audio:Album", B_STRING_TYPE, text.album);
722 inode->AddAttribute("Audio:Title", B_STRING_TYPE, text.titles[i]);
723 inode->AddAttribute("Audio:Genre", B_STRING_TYPE, text.genre);
724 inode->AddAttribute("Audio:Track", B_INT32_TYPE, (uint32)track);
725 inode->AddAttribute("Audio:Bitrate", B_STRING_TYPE, "1411 kbps");
726 inode->AddAttribute("Media:Length", B_INT64_TYPE,
727 inode->FrameCount() * 1000000L / kFramesPerSecond);
728 inode->AddAttribute("BEOS:TYPE", B_MIME_STRING_TYPE, "audio/x-wav");
785 for (Inode* inode = fFirstEntry; inode != NULL; inode = inode->Next()) {
786 if (inode->ID() == id)
787 return inode;
801 for (Inode* inode = fFirstEntry; inode != NULL; inode = inode->Next()) {
802 if (!strcmp(inode->Name(), name))
803 return inode;
855 Inode* inode = new(std::nothrow) Inode(this, parent, name, start, frames,
857 if (inode == NULL)
860 if (inode->InitCheck() != B_OK) {
861 delete inode;
875 last->SetNext(inode);
877 fFirstEntry = inode;
880 return inode;
884 /*! Opens the file that contains the volume and inode titles as well as all
920 for (Inode* inode = fFirstEntry; inode != NULL; inode = inode->Next()) {
924 inode->SetName(line);
928 for (Inode* inode = fFirstEntry; inode != NULL; inode = inode->Next()) {
929 if (!read_attributes(fd, inode))
945 for (Inode* inode = fFirstEntry; inode != NULL; inode = inode->Next()) {
946 write_line(fd, inode->Name());
951 for (Inode* inode = fFirstEntry; inode != NULL; inode = inode->Next()) {
952 write_attributes(fd, inode);
1583 Inode* inode = volume->Find(name);
1584 if (inode == NULL)
1587 status = get_vnode(volume->FSVolume(), inode->ID(), NULL);
1591 *_id = inode->ID();
1601 Inode* inode = (Inode*)_node->private_node;
1603 TRACE(("cdda_get_vnode_name(): inode = %p\n", inode));
1606 strlcpy(buffer, inode->Name(), bufferSize);
1616 Inode* inode;
1620 inode = volume->Find(id);
1621 if (inode == NULL)
1624 _node->private_node = inode;
1626 *_type = inode->Type();
1690 Inode* inode = (Inode*)_node->private_node;
1695 if (S_ISDIR(inode->Type()))
1700 off_t maxSize = inode->Size() + sizeof(wav_header);
1727 if (user_memcpy(buffer, (uint8*)inode->WAVHeader() + offset, size)
1740 offset += inode->StartFrame() * kFrameSize;
1743 inode->StartFrame() + inode->FrameCount(), offset, buffer, length,
1782 Inode* inode = (Inode*)_node->private_node;
1784 TRACE(("cdda_read_stat: vnode %p (0x%Lx), stat %p\n", inode, inode->ID(),
1787 fill_stat_buffer(volume, inode, NULL, *stat);
1805 Inode* inode = volume->Find(oldName);
1806 if (inode == NULL)
1812 status_t status = inode->SetName(newName);
1821 volume->RootNode().ID(), newName, inode->ID());
1838 Inode* inode = (Inode*)_node->private_node;
1839 if (!S_ISDIR(inode->Type()))
1842 if (inode != &volume->RootNode())
1862 Inode* inode = (Inode*)_node->private_node;
1883 childNode = inode;
1889 childNode = inode; // parent of the root node is the root node
1975 Inode* inode = (Inode*)_node->private_node;
1983 inode->AddAttrCookie(cookie);
2000 Inode* inode = (Inode*)_node->private_node;
2005 inode->RemoveAttrCookie(cookie);
2015 Inode* inode = (Inode*)_node->private_node;
2020 inode->RewindAttrCookie(cookie);
2030 Inode* inode = (Inode*)_node->private_node;
2043 dirent->d_ino = inode->ID();
2057 Inode *inode = (Inode*)_node->private_node;
2061 Attribute* attribute = inode->FindAttribute(name);
2065 status_t status = inode->AddAttribute(name, type, true, NULL, 0);
2069 notify_attribute_changed(volume->ID(), -1, inode->ID(), name,
2093 Inode* inode = (Inode*)_node->private_node;
2097 Attribute* attribute = inode->FindAttribute(name);
2129 Inode* inode = (Inode*)_node->private_node;
2133 Attribute* attribute = inode->FindAttribute((const char*)_cookie);
2146 Inode* inode = (Inode*)_node->private_node;
2150 Attribute* attribute = inode->FindAttribute((const char*)_cookie);
2159 notify_attribute_changed(volume->ID(), -1, inode->ID(),
2171 Inode* inode = (Inode*)_node->private_node;
2175 Attribute* attribute = inode->FindAttribute((const char*)_cookie);
2179 fill_stat_buffer(volume, inode, attribute, *stat);
2199 Inode* inode = (Inode*)_node->private_node;
2203 status_t status = inode->RemoveAttribute(name, true);
2205 notify_attribute_changed(volume->ID(), -1, inode->ID(), name,