/* LBS: An LFS-inspired filesystem backup system
- * Copyright (C) 2007 Michael Vrable
+ * Copyright (C) 2007-2008 Michael Vrable
*
* Handling of metadata written to backup snapshots. This manages the writing
* of file metadata into new backup snapshots, including breaking the metadata
#include "ref.h"
#include "util.h"
+extern bool flag_full_metadata;
+
/* Metadata for a single inode, ready to be written out. */
struct MetadataItem {
int offset;
ObjectReference close();
bool find(const std::string& path);
- ObjectReference *old_ref() const {
+ ObjectReference old_ref() const {
return ObjectReference::parse(old_metadata_loc);
}
- bool matched() const { return found_match; }
bool is_unchanged(const struct stat *stat_buf);
dictionary get_old_metadata() const { return old_metadata; }
std::ostringstream metadata_root;
// Statcache information read back in from a previous run
- bool found_match; // Result of last call to find
bool old_metadata_eof;
dictionary old_metadata;
std::string old_metadata_loc; // Reference to where the metadata is found