1 /* LBS: An LFS-inspired filesystem backup system
2 * Copyright (C) 2007 Michael Vrable
4 * Handling of metadata written to backup snapshots. This manages the writing
5 * of file metadata into new backup snapshots, including breaking the metadata
6 * log apart across separate objects. Eventually this should include unified
7 * handling of the statcache, and re-use of metadata between snapshots.
10 #ifndef _LBS_METADATA_H
11 #define _LBS_METADATA_H
20 class MetadataWriter {
22 MetadataWriter(TarSegmentStore *store);
23 void add(const std::string& path, dictionary info);
24 ObjectReference close();
27 void metadata_flush();
29 TarSegmentStore *store;
30 std::ostringstream metadata, metadata_root;
33 #endif // _LBS_METADATA_H