summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSage Weil <sage@inktank.com>2013-10-01 16:19:48 -0700
committerSage Weil <sage@inktank.com>2013-10-01 16:19:48 -0700
commita0ed9c20048750fd4b2c7ce0339fa8b20ef08ca3 (patch)
treeb6332e25f4a1a1fb0cb5988ec6eee0f1b68b6391
parentece11f4a82062f7fb4413a6af5a64d80fd2046bf (diff)
downloadceph-a0ed9c20048750fd4b2c7ce0339fa8b20ef08ca3.tar.gz
osd/osd_types: add object_info_t::FLAG_DIRTY
Signed-off-by: Sage Weil <sage@inktank.com>
-rw-r--r--src/osd/osd_types.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/osd/osd_types.h b/src/osd/osd_types.h
index 9d440e25bde..8e5b7319bd6 100644
--- a/src/osd/osd_types.h
+++ b/src/osd/osd_types.h
@@ -2099,6 +2099,7 @@ struct object_info_t {
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;
@@ -2132,6 +2133,9 @@ struct object_info_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);