Lines Matching defs:inode

32 // along the position of the inode.
108 Inode *inode = Inode::Factory(&disk,run);
109 if (inode != NULL)
111 if (inode->IsDirectory())
112 collectFiles(disk,static_cast<Directory *>(inode));
114 delete inode;
117 printf(" Directory \"%s\" (%ld, %d) points to corrupt inode \"%s\" (%ld, %d)\n",
157 printf(" inode at (%ld, %d), offset %lld, doesn't exist!",run.allocation_group,run.start,offset);
216 Inode *inode = NULL;
223 delete inode;
224 inode = Inode::Factory(&disk,runs[i]);
225 if (inode == NULL || inode->InitCheck() < B_OK)
227 fprintf(stderr," inode at (%ld, %d) is corrupt!\n",runs[i].allocation_group,runs[i].start);
228 delete inode;
235 if (inode->IsDirectory())
238 memcpy(key,&inode->InodeBuffer()->data.size,sizeof(off_t));
243 strcpy(key,inode->Name());
248 if (inode->IsDirectory())
251 memcpy(key,&inode->InodeBuffer()->last_modified_time,sizeof(off_t));
256 inode->RewindAttributes();
262 while (inode->GetNextAttribute(name,&type,&data,&length) == B_OK)
280 if (*inode->Name())
281 fprintf(stderr," inode at (%ld, %d) name \"%s\" is not in index!\n",runs[i].allocation_group,runs[i].start,inode->Name());
284 // inode is obviously deleted!
285 block_run parent = inode->Parent();
301 fprintf(stderr," inode at (%ld, %d) name \"%s\" was obviously deleted, but the parent \"%s\" still contains it!\n",runs[i].allocation_group,runs[i].start,name,directory->Name());
307 fprintf(stderr," inode at (%ld, %d) was obviously deleted, and the parent \"%s\" obviously doesn't contain it anymore!\n",runs[i].allocation_group,runs[i].start,directory->Name());
310 fprintf(stderr," inode at (%ld, %d) was obviously deleted, but the parent \"%s\" is invalid and still contains it!\n",runs[i].allocation_group,runs[i].start,directory->Name());
315 fprintf(stderr," inode at (%ld, %d) is not in index and has invalid parent!\n",runs[i].allocation_group,runs[i].start);
325 fprintf(stderr," offset in index and inode offset doesn't match for inode \"%s\" at (%ld, %d)\n",inode->Name(),runs[i].allocation_group,runs[i].start);
353 printf(" inode \"%s\" at (%ld, %d) not found in duplicates!\n",inode->Name(),runs[i].allocation_group,runs[i].start);
359 delete inode;