Lines Matching refs:run

71 		Inode* Get(block_run run)
73 return Acquire((Inode *)fHashtable.GetValue(&run));
121 static uint32 BlockRunHash(const block_run *run)
123 return (run->allocation_group << 16) | run->start;
140 InodeGetter(Disk& disk, block_run run)
142 fInode = Inode::Factory(&disk, run);
184 virtual Inode *InodeAt(block_run run)
187 if ((inode = gLogged.Get(run)) != NULL)
190 if ((inode = gMissing.Get(run)) != NULL)
193 if (gMainInodes.find(run) == gMainInodes.end())
196 return Inode::Factory(&fDisk, run);
325 block_run run;
326 if (indices != NULL && indices->FindEntry("name", &run) == B_OK) {
327 InodeGetter getter(disk, run);
356 block_run run;
358 while (dir->GetNextEntry(name, &run) == B_OK) {
359 if (run == dir->BlockRun() || run == dir->Parent()
360 || gMainInodes.find(run) != gMainInodes.end())
363 Inode *missing = gMissing.Get(run);
372 run.allocation_group, run.start, missing->Name(), name);
380 // printf("index directory (%ld, %d): \"%s\" is missing (%ld, %d, %d)\n",node->BlockRun().allocation_group,node->BlockRun().start,name,run.allocation_group,run.start,run.length);
382 // printf("index directory (%ld, %d): key is missing (%ld, %d, %d)\n",node->BlockRun().allocation_group,node->BlockRun().start,run.allocation_group,run.start,run.length);
391 run.allocation_group, run.start, run.length);
394 if ((missing = (Inode *)gLogged.Remove(&run)) != NULL) {
406 } else if (!gMissingEmpty.Contains(&run)) {
410 empty->SetBlockRun(run);
457 block_run run = node->Parent();
458 InodeGetter parentGetter(disk, run);
473 Inode* missing = gMissing.Get(run);
484 node->Mode(), run.allocation_group, run.start,
485 run.length);
489 &run))) != NULL) {
501 Inode *nameNode = (Inode *)gMissingEmpty.Remove(&run);
508 parentName << "__directory " << run.allocation_group
509 << ":" << (int32)run.start;
514 nameNode->SetBlockRun(run);
542 node->Mode(), run.allocation_group, run.start, run.length);
549 node->Mode(), run.allocation_group, run.start, run.length);
569 run = node->Attributes();
570 if (!run.IsZero()) {
573 if (gMainInodes.find(run) == gMainInodes.end()) {
576 ", %d, %d)\n", node->Name(), run.allocation_group,
577 run.start, run.length);
580 if ((dir = (Directory *)gMissing.Get(run)) != NULL) {
592 empty->SetBlockRun(run);
619 block_run run;
621 while (directory->GetNextEntry(name, &run) >= B_OK) {
622 if ((node = gMissing.Get(run)) == NULL)
627 run.allocation_group, run.start);
664 block_run run;
665 while (dir->GetNextEntry(name, &run) == B_OK) {
667 run.allocation_group, run.start, run.length);
681 run = disk.ToBlockRun(offset);
683 dir->Name(), run.allocation_group, run.start, run.length,