X-Git-Url: http://git.vrable.net/?a=blobdiff_plain;ds=sidebyside;f=metadata.h;fp=metadata.h;h=2b4b2e1334935abc92c456443ccc710d9f94972d;hb=bae7cf459803abce603c8b3d3009153936378b42;hp=9325338a3231201a532958b142b862c340fa84fc;hpb=0ac19625c9ad293791b93c931331aa5a0c876f36;p=cumulus.git diff --git a/metadata.h b/metadata.h index 9325338..2b4b2e1 100644 --- a/metadata.h +++ b/metadata.h @@ -11,6 +11,8 @@ #define _LBS_METADATA_H #include +#include +#include #include #include #include @@ -40,7 +42,12 @@ public: 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::list get_blocks(); + std::string get_checksum() { return old_metadata["checksum"]; } private: void metadata_flush(); @@ -59,6 +66,7 @@ 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