Renamed Volume::IsValidBlockRun() to Volume::ValidateBlockRun() because it
returns a status_t, not a boolean value. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1988 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
0c9a17ce08
commit
dbba7407de
@ -206,7 +206,7 @@ Volume::Sync()
|
||||
|
||||
|
||||
status_t
|
||||
Volume::IsValidBlockRun(block_run run)
|
||||
Volume::ValidateBlockRun(block_run run)
|
||||
{
|
||||
if (run.allocation_group < 0 || run.allocation_group > AllocationGroups()
|
||||
|| run.start > (1LL << AllocationGroupShift())
|
||||
|
@ -71,8 +71,8 @@ class Volume {
|
||||
off_t ToOffset(block_run run) const { return ToBlock(run) << fSuperBlock.block_shift; }
|
||||
off_t ToBlock(block_run run) const { return ((((off_t)run.allocation_group) << fSuperBlock.ag_shift) | (off_t)run.start); }
|
||||
block_run ToBlockRun(off_t block) const;
|
||||
status_t IsValidBlockRun(block_run run);
|
||||
|
||||
status_t ValidateBlockRun(block_run run);
|
||||
|
||||
off_t ToVnode(block_run run) const { return ToBlock(run); }
|
||||
off_t ToVnode(off_t block) const { return block; }
|
||||
off_t VnodeToBlock(vnode_id id) const { return (off_t)id; }
|
||||
|
Loading…
Reference in New Issue
Block a user