BlockShift
template<class T, unsigned BlockShift=8, unsigned BlockPool=256>
block_shift = BlockShift,
if (read_pos(volume->Device(), newBlockNumber << volume->BlockShift(),
- (fileOffset + (blockOffset << volume->BlockShift())));
uint32 blockShift = fVolume->BlockShift();
uint32 blockShift = fVolume->BlockShift();
uint32 blockShift = volume->BlockShift();
uint32 BlockShift() const
{ return fVolume->BlockShift(); }
= ((uint32)indirect.Length() << GetVolume()->BlockShift())
kprintf(" block_shift = %u\n", (unsigned)superBlock->BlockShift());
<< cached.BlockShift();
<< cached.BlockShift());
<< fVolume->BlockShift();
- ((uint32)run.Length() << fVolume->BlockShift());
+ (run.Length() << fVolume->BlockShift());
+ (run.Length() << fVolume->BlockShift()));
+ (runLength << fVolume->BlockShift()));
>> fVolume->BlockShift();
roundTo = 65536 >> fVolume->BlockShift();
roundTo = (512 * 1024) >> fVolume->BlockShift();
roundTo = size >> (fVolume->BlockShift() + 4);
roundTo = 65536 >> fVolume->BlockShift();
roundTo = 4096 >> fVolume->BlockShift();
newOffset += (off_t)array[i].Length() << fVolume->BlockShift();
>> fVolume->BlockShift()));
<< fVolume->BlockShift()));
int32 blockShift = fVolume->BlockShift();
fBlockShift = fSuperBlock.BlockShift();
if (diskSize < (NumBlocks() << BlockShift())) {
B_PRIdOFF " bytes)!\n", diskSize, NumBlocks() << BlockShift()));
|| (1UL << BlockShift()) != BlockSize()
fBlockShift = fSuperBlock.BlockShift();
uint32 BlockShift() const { return fBlockShift; }
{ return ToBlock(run) << BlockShift(); }
uint32 BlockShift() const { return BFS_ENDIAN_TO_HOST_INT32(block_shift); }
int32 blockShift = volume->BlockShift();
fBlockSize = 1 << fSuperBlock.BlockShift();
<< fSuperBlock.BlockShift();
uint8 BlockShift() const { return block_shift; }
<< superBlock.BlockShift();
<< cookie->super_block.BlockShift();
partition->block_size = 1 << cookie->super_block.BlockShift();
uint32 blockSize = 1 << superBlock.BlockShift();
fNumBlocks = size == 0 ? 0 : ((size - 1) >> fVolume->BlockShift()) + 1;
uint32 index = offset >> fVolume->BlockShift();
= (fSize + fVolume->BlockSize() - 1) >> fVolume->BlockShift();
fNumBlocks = size == 0 ? 0 : ((size - 1) >> fVolume->BlockShift()) + 1;
fileblock_t index = offset >> fVolume->BlockShift();
fBlockShift = fSuperBlock.BlockShift();
if ((diskSize + fBlockSize) <= ((off_t)NumBlocks() << BlockShift())) {
|| BlockShift() > 16
|| BlocksPerGroup() != (1UL << BlockShift()) * 8
|| InodeSize() > (1UL << BlockShift())
|| ReservedGDTBlocks() > (1UL << BlockShift()) / 4
uint32 BlockShift() const { return fBlockShift; }
uint32 BlockShift() const { return B_LENDIAN_TO_HOST_INT32(block_shift) + 10; }
off_t blockOffset = block << volume->BlockShift();
<< cookie->super_block.BlockShift();
partition->block_size = 1UL << cookie->super_block.BlockShift();
off_t startBlock = start >> fVolume->BlockShift();
uint32 BlockShift() const { return fVolume->BlockShift(); }
off_t pos = logicalBlock << fVolume->BlockShift();
= pos - off_t((pos >> volume->BlockShift()) << volume->BlockShift());
vecs[index].offset = diskBlock << fVolume->BlockShift();
uint32 BlockShift() const { return fBlockShift; }
int32 bytes = data->indirect.length << disk.BlockShift();
int32 bytes = node->data.indirect.length << fDisk->BlockShift();
ssize_t length = (int32)run.length << fDisk->BlockShift();
uint32 BlockShift() const { return fSuperBlock.block_shift; }
? fRunFileOffset + (fRun.length << fDisk->BlockShift()) : 0LL;
int32 indirectRuns = (fInode->data.indirect.length << fDisk->BlockShift()) / sizeof(block_run);
fRunBlockEnd += indirect[fCurrent].length << fDisk->BlockShift();
fRunBlockEnd += fInode->data.direct[fCurrent].length << fDisk->BlockShift();
else if ((fInode->data.direct[i].length << fDisk->BlockShift()) >= size) {
size -= fInode->data.direct[i].length << fDisk->BlockShift();
off_t end = offset + (disk.Log().length << disk.BlockShift());
<< disk.BlockShift());
off_t end = (off_t)disk.NumBlocks() << disk.BlockShift();
+= (uint32)indirect[current].Length() << cached.BlockShift();
- ((uint32)run.Length() << cached.BlockShift());
runBlockEnd += (uint32)data.direct[current].Length() << fVolume.BlockShift();
offset = runBlockEnd - ((uint32)run.Length() << fVolume.BlockShift());
uint32 blockShift = fVolume.BlockShift();
run.Length() << fVolume.BlockShift()) < B_OK) {
{ return fVolume.BlockShift(); }
if (read_pos(fVolume.Device(), block << BlockShift(), fBlock, BlockSize())
uint32 BlockShift() const { return fSuperBlock.BlockShift(); }
off_t ToOffset(block_run run) const { return ToBlock(run) << BlockShift(); }
off_t ToOffset(off_t block) const { return block << BlockShift(); }
|| (1UL << fSuperBlock.BlockShift()) != fSuperBlock.BlockSize()
fBlockNumber << BlockShift(), fBlock, BlockSize());
ssize_t written = write_pos(fVolume.Device(), fBlockNumber << BlockShift(),
uint32 BlockShift() const { return fVolume.BlockShift(); }
int32 BlockShift() const { return fBlockShift; }
{ return block << BlockShift(); }
uint32 ToBlock(off_t offset) const { return offset >> BlockShift(); }
uint32 BlockShift() const { return 10; /* 2^BlockShift == BlockSize */ }
if (read_pos(device, blockNumber << superBlock.BlockShift(),
if (read_pos(device, blockNumber << superBlock.BlockShift(),
|| (1UL << BlockShift()) != BlockSize()
return toBlock(superBlock, run) << superBlock.BlockShift();