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

This commit is contained in:
ksherlock
2010-05-20 22:30:00 +00:00
parent d9bc18bdee
commit e7b4c96984
8 changed files with 43 additions and 3 deletions

View File

@@ -69,6 +69,14 @@ void MappedBlockCache::write(unsigned block, const void *vp)
}
void MappedBlockCache::zeroBlock(unsigned block)
{
_dirty = true;
std::memset(_data + block * 512, 0, 512);
}
// sync everything.
void MappedBlockCache::sync()
{