Lines Matching defs:inode

420 	// scan for indices and root inode
435 printf("No valid inode found so far - perform search.\n");
443 fprintf(stderr,"FATAL ERROR: Could not find valid inode!\n");
501 bfs_inode *inode = (bfs_inode *)buffer;
515 if (inode->magic1 != INODE_MAGIC1
516 || inode->inode_size != 1024
517 && inode->inode_size != 2048
518 && inode->inode_size != 4096
519 && inode->inode_size != 8192)
526 if ((1 << (i + 10)) == inode->inode_size)
564 bfs_inode *inode = (bfs_inode *)buffer;
574 if (inode->magic1 != INODE_MAGIC1
575 || inode->inode_size != fSuperBlock.inode_size)
582 if (inode->inode_num.allocation_group > 0
584 fValidBlockRun = inode->inode_num;
591 // is the inode a special root inode (parent == self)?
593 if (!memcmp(&inode->parent, &inode->inode_num, sizeof(inode_addr))) {
594 printf("\t special inode found at %" B_PRIdOFF "\n", offset);
606 Disk::SaveInode(bfs_inode *inode, bool *indices, bfs_inode *indexDir,
609 if ((inode->mode & S_INDEX_DIR) == 0) {
612 if (inode->inode_num.allocation_group != 8
613 || inode->inode_num.start != 0
614 || inode->inode_num.length != 1) {
617 inode->inode_num.allocation_group,
618 inode->inode_num.start, inode->inode_num.length);
621 memcpy(rootDir, inode, sizeof(bfs_inode));
622 } else if (inode->mode & S_INDEX_DIR) {
626 memcpy(indexDir, inode, sizeof(bfs_inode));
629 // dump_inode(inode);
641 bfs_inode *inode = (bfs_inode *)buffer;
649 // search for the indices inode, start reading from log size + boot block size
652 SaveInode(inode,&indices,indexDir,&root,rootDir);
667 SaveInode(inode, &indices, indexDir, &root, rootDir);
680 SaveInode(inode,&indices,indexDir,&root,rootDir);
703 offset += BlockSize(); // the block after the indices inode
708 SaveInode(inode,&indices,indexDir,&root,rootDir);