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

@@ -11,6 +11,8 @@
#include <Device/DiskImage.h>
#include <File/MappedFile.h>
#include <Cache/MappedBlockCache.h>
#include <ProFUSE/Exception.h>
@@ -190,6 +192,15 @@ void ProDOSOrderDiskImage::Validate(MappedFile *f)
}
BlockCache *ProDOSOrderDiskImage::createBlockCache(unsigned size)
{
return new MappedBlockCache(this, address());
}
#pragma mark -
#pragma mark DOS Order Disk Image
/*
DOSOrderDiskImage::DOSOrderDiskImage(const char *name, bool readOnly) :
DiskImage(name, readOnly)