mirror of
https://github.com/ksherlock/profuse.git
synced 2026-03-14 16:16:21 +00:00
block cache support.
git-svn-id: https://profuse.googlecode.com/svn/branches/v2@220 aa027e90-d47c-11dd-86d7-074df07e0730
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user