mirror of
https://github.com/ksherlock/profuse.git
synced 2026-04-19 23:16:30 +00:00
use shared_ptr for device, cache
git-svn-id: https://profuse.googlecode.com/svn/branches/v2@345 aa027e90-d47c-11dd-86d7-074df07e0730
This commit is contained in:
@@ -218,11 +218,11 @@ void DiskCopy42Image::write(unsigned block, const void *bp)
|
||||
}
|
||||
|
||||
|
||||
BlockCache *DiskCopy42Image::createBlockCache()
|
||||
BlockCachePointer DiskCopy42Image::createBlockCache()
|
||||
{
|
||||
// if not readonly, mark changed so crc will be updated at close.
|
||||
|
||||
if (!readOnly()) _changed = true;
|
||||
|
||||
return new MappedBlockCache(this, address());
|
||||
return MappedBlockCache::Create(shared_from_this(), address());
|
||||
}
|
||||
Reference in New Issue
Block a user