Fixed wrong storage classifier (was LL instead of UL).

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2841 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2003-02-25 03:00:17 +00:00
parent cdeaad9578
commit eabe73689f
@@ -208,10 +208,10 @@ Volume::Sync()
status_t status_t
Volume::ValidateBlockRun(block_run run) Volume::ValidateBlockRun(block_run run)
{ {
if (run.allocation_group < 0 || run.allocation_group > AllocationGroups() if (run.allocation_group < 0 || run.allocation_group > (int32)AllocationGroups()
|| run.start > (1LL << AllocationGroupShift()) || run.start > (1UL << AllocationGroupShift())
|| run.length == 0 || run.length == 0
|| (uint32)run.length + run.start > (1LL << AllocationGroupShift())) { || uint32(run.length + run.start) > (1UL << AllocationGroupShift())) {
Panic(); Panic();
FATAL(("*** invalid run(%ld,%d,%d)\n", run.allocation_group, run.start, run.length)); FATAL(("*** invalid run(%ld,%d,%d)\n", run.allocation_group, run.start, run.length));
return B_BAD_DATA; return B_BAD_DATA;