"info_missing",
"info_corrupted",
"snapset_mismatch",
- "head_mismatch",
"headless",
"size_mismatch",
"extra_clones",
errors |= inc_snapset_t::SNAP_MISMATCH;
}
-void inconsistent_snapset_wrapper::set_head_mismatch()
-{
- errors |= inc_snapset_t::HEAD_MISMATCH;
-}
-
void inconsistent_snapset_wrapper::set_size_mismatch()
{
errors |= inc_snapset_t::SIZE_MISMATCH;
void set_clone(snapid_t);
// the snapset is not consistent with itself
void set_snapset_mismatch();
- // soid.snap inconsistent with snapset
- void set_head_mismatch();
void set_size_mismatch();
void encode(bufferlist& bl) const;
SNAPSET_CORRUPTED = 1 << 1,
CLONE_MISSING = 1 << 2,
SNAP_MISMATCH = 1 << 3,
- HEAD_MISMATCH = 1 << 4,
+ HEAD_MISMATCH = 1 << 4, // Unused
HEADLESS_CLONE = 1 << 5,
SIZE_MISMATCH = 1 << 6,
OI_MISSING = 1 << 7, // Old
bool snapset_mismatch() const {
return errors & SNAP_MISMATCH;
}
- bool head_mismatch() const {
- return errors & HEAD_MISMATCH;
+ bool head_mismatch() const { // Compatibility
+ return false;
}
bool headless() const {
return errors & HEADLESS_CLONE;
f.dump_string("error", "info_corrupted");
if (inc.snapset_mismatch())
f.dump_string("error", "snapset_mismatch");
- if (inc.head_mismatch())
- f.dump_string("error", "head_mismatch");
if (inc.headless())
f.dump_string("error", "headless");
if (inc.size_mismatch())