summaryrefslogtreecommitdiffstats
path: root/src/osd/OSDMap.h
diff options
context:
space:
mode:
authorDavid Zafman <dzafman@redhat.com>2017-03-30 21:42:54 +0200
committerDavid Zafman <dzafman@redhat.com>2017-04-17 17:00:24 +0200
commita5731076add0af10686da482ecc29a1fa2600a14 (patch)
treefcf768c2881f313654f4626272d7a8350c0b2743 /src/osd/OSDMap.h
parentosd: For testing full disks add injectfull socket command (diff)
downloadceph-a5731076add0af10686da482ecc29a1fa2600a14.tar.xz
ceph-a5731076add0af10686da482ecc29a1fa2600a14.zip
osd: Handle backfillfull_ratio just like nearfull and full
Add BACKFILLFULL as a local OSD cur_state Notify monitor of this new fullness state Signed-off-by: David Zafman <dzafman@redhat.com>
Diffstat (limited to 'src/osd/OSDMap.h')
-rw-r--r--src/osd/OSDMap.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/osd/OSDMap.h b/src/osd/OSDMap.h
index eb0399edda6..2e8fcf800d9 100644
--- a/src/osd/OSDMap.h
+++ b/src/osd/OSDMap.h
@@ -155,6 +155,7 @@ public:
string cluster_snapshot;
float new_nearfull_ratio = -1;
+ float new_backfillfull_ratio = -1;
float new_full_ratio = -1;
mutable bool have_crc; ///< crc values are defined
@@ -254,7 +255,7 @@ private:
string cluster_snapshot;
bool new_blacklist_entries;
- float full_ratio = 0, nearfull_ratio = 0;
+ float full_ratio = 0, backfillfull_ratio = 0, nearfull_ratio = 0;
mutable uint64_t cached_up_osd_features;
@@ -336,10 +337,13 @@ public:
float get_full_ratio() const {
return full_ratio;
}
+ float get_backfillfull_ratio() const {
+ return backfillfull_ratio;
+ }
float get_nearfull_ratio() const {
return nearfull_ratio;
}
- void count_full_nearfull_osds(int *full, int *nearfull) const;
+ void count_full_nearfull_osds(int *full, int *backfill, int *nearfull) const;
/***** cluster state *****/
/* osds */