Signed-off-by: Sage Weil <sage@inktank.com>
typedef enum {
FLAG_LOST = 1<<0,
FLAG_WHITEOUT = 1<<1, // object logically does not exist
+ FLAG_DIRTY = 1<<2, // object has been modified since last flushed or undirtied
// ...
FLAG_USES_TMAP = 1<<8,
} flag_t;
bool is_whiteout() const {
return test_flag(FLAG_WHITEOUT);
}
+ bool is_dirty() const {
+ return test_flag(FLAG_DIRTY);
+ }
void encode(bufferlist& bl) const;
void decode(bufferlist::iterator& bl);