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

This commit is contained in:
ksherlock
2010-05-19 01:07:47 +00:00
parent 22afe5d128
commit 77fda944ae
10 changed files with 87 additions and 26 deletions

View File

@@ -59,6 +59,15 @@ void MappedBlockCache::release(unsigned block, int flags)
if (flags & kBlockDirty) _dirty = true;
}
void MappedBlockCache::write(unsigned block, const void *vp)
{
_dirty = true;
std::memcpy(_data + block * 512, vp, 512);
}
// sync everything.
void MappedBlockCache::sync()
{