mirror of
https://github.com/ksherlock/profuse.git
synced 2026-04-19 23:16:30 +00:00
git-svn-id: https://profuse.googlecode.com/svn/branches/v2@240 aa027e90-d47c-11dd-86d7-074df07e0730
This commit is contained in:
@@ -77,9 +77,10 @@ VolumeEntry::VolumeEntry(const char *name, Device::BlockDevice *device)
|
||||
_cache = BlockCache::Create(device);
|
||||
_device = device;
|
||||
|
||||
|
||||
for (unsigned i = 2; i < 6; ++i)
|
||||
{
|
||||
device->zeroBlock(i);
|
||||
_cache->zeroBlock(i);
|
||||
}
|
||||
|
||||
void *vp = _cache->acquire(2);
|
||||
@@ -89,6 +90,7 @@ VolumeEntry::VolumeEntry(const char *name, Device::BlockDevice *device)
|
||||
|
||||
_cache->release(2, true);
|
||||
|
||||
_cache->sync();
|
||||
}
|
||||
|
||||
|
||||
@@ -216,6 +218,10 @@ void VolumeEntry::writeBlock(unsigned block, void *buffer)
|
||||
}
|
||||
|
||||
|
||||
void VolumeEntry::sync()
|
||||
{
|
||||
_cache->sync();
|
||||
}
|
||||
|
||||
void VolumeEntry::writeDirectoryEntry(IOBuffer *b)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user