Lines Matching refs:inode

22 		inode(NULL)
28 Inode* inode;
202 CheckVisitor::VisitDirectoryEntry(Inode* inode, Inode* parent,
205 Control().inode = inode->ID();
206 Control().mode = inode->Mode();
211 // check if the inode's name is the same as in the b+tree
212 if (inode->IsRegularNode()) {
213 RecursiveLocker locker(inode->SmallDataLock());
215 status_t status = node.SetTo(inode);
222 const char* localName = inode->Name(node.Node());
225 FATAL(("Names differ: tree \"%s\", inode \"%s\"\n", treeName,
229 // Rename the inode
230 Transaction transaction(GetVolume(), inode->BlockNumber());
232 // Note, this may need extra blocks, but the inode will
234 status_t status = inode->SetName(transaction, treeName);
236 status = inode->WriteBack(transaction);
250 && !inode->IsAttribute())
252 && !inode->IsIndex())
254 && !inode->IsRegularNode())) {
255 FATAL(("inode at %" B_PRIdOFF " is of wrong type: %o (parent "
256 "%o at %" B_PRIdOFF ")!\n", inode->BlockNumber(),
257 inode->Mode(), parent->Mode(), parent->BlockNumber()));
262 Control().status = _RemoveInvalidNode(parent, NULL, inode,
274 CheckVisitor::VisitInode(Inode* inode, const char* treeName)
276 Control().inode = inode->ID();
277 Control().mode = inode->Mode();
282 if (inode->GetName(Control().name) < B_OK) {
283 if (inode->IsContainer())
296 status = _CheckInodeBlocks(inode, NULL);
301 if (inode->IsContainer()) {
305 status = inode->Tree()->Validate(repairErrors, errorsFound);
309 if (inode->IsIndex() && treeName != NULL && repairErrors) {
316 index->run = inode->BlockRun();
326 status = _AddInodeToIndex(inode);
339 FATAL(("Could not open inode at %" B_PRIdOFF ": %s\n", id,
347 Control().inode = id;
353 // Remove inode from the tree if we can
369 CheckVisitor::OpenBPlusTreeFailed(Inode* inode)
371 FATAL(("Could not open b+tree from inode at %" B_PRIdOFF "\n",
372 inode->ID()));
391 Inode* inode, const char* name)
400 if (inode != NULL) {
401 inode->Node().flags |= HOST_ENDIAN_TO_BFS_INT32(INODE_DONT_FREE_SPACE);
468 CheckVisitor::_CheckInodeBlocks(Inode* inode, const char* name)
470 status_t status = _CheckAllocated(inode->BlockRun(), "inode");
474 if (inode->IsSymLink() && (inode->Flags() & INODE_LONG_SYMLINK) == 0) {
476 if (strlen(inode->Node().short_symlink) >= SHORT_SYMLINK_NAME_LENGTH)
482 data_stream* data = &inode->Node().data;
684 Inode* inode;
685 status_t status = vnode.Get(&inode);
692 BPlusTree* tree = inode->Tree();
702 index->inode = inode;
716 if (index->inode != NULL) {
718 GetVolume()->ToVnode(index->inode->BlockRun()));
727 CheckVisitor::_AddInodeToIndex(Inode* inode)
729 Transaction transaction(GetVolume(), inode->BlockNumber());
733 if (index->inode == NULL)
736 index->inode->WriteLockInTransaction(transaction);
738 BPlusTree* tree = index->inode->Tree();
745 if (inode->InNameIndex()) {
747 if (inode->GetName(name, B_FILE_NAME_LENGTH) != B_OK)
750 status = tree->Insert(transaction, name, inode->ID());
753 if (inode->InLastModifiedIndex()) {
754 status = tree->Insert(transaction, inode->OldLastModified(),
755 inode->ID());
758 if (inode->InSizeIndex())
759 status = tree->Insert(transaction, inode->Size(), inode->ID());
763 if (inode->ReadAttribute(index->name, B_ANY_TYPE, 0, key,
765 status = tree->Insert(transaction, key, keyLength, inode->ID());