diff --git a/src/add-ons/kernel/file_systems/bfs/Volume.cpp b/src/add-ons/kernel/file_systems/bfs/Volume.cpp index c3a3df82c3..9d2f7d5254 100644 --- a/src/add-ons/kernel/file_systems/bfs/Volume.cpp +++ b/src/add-ons/kernel/file_systems/bfs/Volume.cpp @@ -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()) diff --git a/src/add-ons/kernel/file_systems/bfs/Volume.h b/src/add-ons/kernel/file_systems/bfs/Volume.h index 118a472a11..44f0865689 100644 --- a/src/add-ons/kernel/file_systems/bfs/Volume.h +++ b/src/add-ons/kernel/file_systems/bfs/Volume.h @@ -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; }