Signed-off-by: Sage Weil <sage@inktank.com>
out << " " << oi.snaps;
if (oi.is_lost())
out << " LOST";
+ if (oi.is_whiteout())
+ out << " WHITEOUT";
out << ")";
return out;
}
// note: these are currently encoded into 8 bits; see encode()/decode()
typedef enum {
FLAG_LOST = 1<<0,
+ FLAG_WHITEOUT = 1<<1, // object logically does not exist
} flag_t;
flag_t flags;
bool is_lost() const {
return test_flag(FLAG_LOST);
}
+ bool is_whiteout() const {
+ return test_flag(FLAG_WHITEOUT);
+ }
void encode(bufferlist& bl) const;
void decode(bufferlist::iterator& bl);