block cache support.

git-svn-id: https://profuse.googlecode.com/svn/branches/v2@220 aa027e90-d47c-11dd-86d7-074df07e0730
This commit is contained in:
ksherlock
2010-05-18 19:59:18 +00:00
parent be7a7bafc1
commit 629efe6da5
11 changed files with 92 additions and 14 deletions

View File

@@ -9,7 +9,7 @@
#include <Device/BlockDevice.h>
#include <Cache/ConcreteBlockCache.h>
#include <ProFUSE/Exception.h>
@@ -54,3 +54,8 @@ void BlockDevice::sync(TrackSector ts)
sync();
}
BlockCache *BlockDevice::createBlockCache(unsigned size)
{
return new ConcreteBlockCache(this, size);
}