| 58 | } |
| 59 | |
| 60 | void saveMetadata(const folly::File& file, |
| 61 | const serialization::NvmCacheMetadata& metadata) { |
| 62 | auto metadataIoBuf = Serializer::serializeToIOBuf(metadata); |
| 63 | folly::File shutDownFile{file.fd()}; |
| 64 | folly::RecordIOWriter rw{std::move(shutDownFile)}; |
| 65 | rw.write(std::move(metadataIoBuf)); |
| 66 | } |
| 67 | } // namespace |
| 68 | |
| 69 | std::string NvmCacheState::getNvmCacheStateFilePath( |