Lines Matching refs:run
109 Volume::ValidateBlockRun(block_run run)
111 if (run.AllocationGroup() < 0 || run.AllocationGroup() > (int32)AllocationGroups()
112 || run.Start() > (1UL << AllocationGroupShift())
113 || run.length == 0
114 || uint32(run.Length() + run.Start()) > (1UL << AllocationGroupShift())) {
115 dprintf("bfs: invalid run(%" B_PRId32 ",%d,%d)\n",
116 run.AllocationGroup(), run.Start(), run.Length());
126 block_run run;
127 run.allocation_group = HOST_ENDIAN_TO_BFS_INT32(block >> fSuperBlock.AllocationGroupShift());
128 run.start = HOST_ENDIAN_TO_BFS_INT16(block & ~((1LL << fSuperBlock.AllocationGroupShift()) - 1));
129 run.length = HOST_ENDIAN_TO_BFS_INT16(1);
130 return run;