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

This commit is contained in:
ksherlock
2009-12-16 01:33:28 +00:00
parent 70dfd5b485
commit bd063227e2
14 changed files with 136 additions and 94 deletions

View File

@@ -6,10 +6,11 @@
#include <sys/mman.h>
#include <unistd.h>
#include "BlockDevice.h"
#include "BlockCache.h"
#include "Exception.h"
#include "auto.h"
#include <Device/BlockDevice.h>
#include <Device/BlockCache.h>
#include <ProFUSE/Exception.h>
#include <ProFUSE/auto.h>
/*
@@ -19,7 +20,10 @@
using namespace ProFUSE;
using namespace Device;
using ProFUSE::Exception;
using ProFUSE::POSIXException;
#pragma mark -
#pragma mark AbstractBlockCache
@@ -162,7 +166,7 @@ void *BlockCache::load(unsigned block)
}
auto_array<uint8_t> buffer(new uint8_t[512]);
ProFUSE::auto_array<uint8_t> buffer(new uint8_t[512]);
BlockDescriptor bd = { block, 1, _ts, false, buffer.get() };
_device->read(block, buffer.get());