| 84 | */ |
| 85 | |
| 86 | bool CachedBlockDevice::writeBlock(const void *src,uint32_t blockIndex) { |
| 87 | |
| 88 | // write through |
| 89 | |
| 90 | if(!_device.writeBlock(src,blockIndex)) |
| 91 | return false; |
| 92 | |
| 93 | // and into the cache |
| 94 | |
| 95 | writeToCache(src,blockIndex); |
| 96 | return true; |
| 97 | } |
| 98 | |
| 99 | /* |
| 100 | * find cache entry and write |
no outgoing calls
no test coverage detected