X-Git-Url: http://git.vrable.net/?a=blobdiff_plain;f=metadata.h;h=858a94d1f179b6da9435b08bec6d64b8880dad6d;hb=e29cf5eefb0ff3be77a548edb6bbd89ea58c02a9;hp=2b4b2e1334935abc92c456443ccc710d9f94972d;hpb=bae7cf459803abce603c8b3d3009153936378b42;p=cumulus.git diff --git a/metadata.h b/metadata.h index 2b4b2e1..858a94d 100644 --- a/metadata.h +++ b/metadata.h @@ -21,6 +21,8 @@ #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; @@ -38,11 +40,10 @@ public: 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; } @@ -66,7 +67,6 @@ private: 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