MCPcopy Create free account
hub / github.com/chyyuu/os_kernel_lab / sync

Method sync

easy-fs/src/block_cache.rs:63–68  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

61 }
62
63 pub fn sync(&mut self) {
64 if self.modified {
65 self.modified = false;
66 self.block_device.write_block(self.block_id, &self.cache);
67 }
68 }
69}
70
71impl Drop for BlockCache {

Callers 2

dropMethod · 0.80
block_cache_sync_allFunction · 0.80

Calls 1

write_blockMethod · 0.45

Tested by

no test coverage detected