git-svn-id: https://profuse.googlecode.com/svn/branches/v2@225 aa027e90-d47c-11dd-86d7-074df07e0730

This commit is contained in:
ksherlock
2010-05-19 17:50:18 +00:00
parent e53674e015
commit 545dd02842
6 changed files with 21 additions and 11 deletions
+2 -3
View File
@@ -100,7 +100,7 @@ VolumeEntry::VolumeEntry(Device::BlockDevice *device)
_device = device;
_cache = BlockCache::Create(device);
device->read(2, buffer.get());
_cache->read(2, buffer.get());
init(buffer.get());
@@ -108,7 +108,6 @@ VolumeEntry::VolumeEntry(Device::BlockDevice *device)
//printf("%u %u\n", blocks(), _lastBlock - _firstBlock);
// why the fuck didn't this work????
blockCount = blocks();
if (blockCount > 1)
@@ -117,7 +116,7 @@ VolumeEntry::VolumeEntry(Device::BlockDevice *device)
for (unsigned i = 0; i < blockCount; ++i)
{
device->read(2 + i, buffer.get() + 512 * i);
_cache->read(2 + i, buffer.get() + 512 * i);
}
}