diff options
author | Ilya Dryomov <idryomov@gmail.com> | 2017-07-27 11:59:14 -0400 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2017-08-01 10:46:45 -0400 |
commit | ae78dd8139ce93a528beb7f3914531b7a7be9e30 (patch) | |
tree | 69c4997dcbd64a8c1912e442a3444325714ce2e6 /include/linux/ceph | |
parent | f53b7665c8cec40c8a638b55ee098b721e6be20c (diff) |
libceph: make RECOVERY_DELETES feature create a new interval
This is needed so that the OSDs can regenerate the missing set at the
start of a new interval where support for recovery deletes changed.
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by: Sage Weil <sage@redhat.com>
Diffstat (limited to 'include/linux/ceph')
-rw-r--r-- | include/linux/ceph/osd_client.h | 1 | ||||
-rw-r--r-- | include/linux/ceph/osdmap.h | 2 | ||||
-rw-r--r-- | include/linux/ceph/rados.h | 4 |
3 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/ceph/osd_client.h b/include/linux/ceph/osd_client.h index c6d96a5f46fd..adf670ecaf94 100644 --- a/include/linux/ceph/osd_client.h +++ b/include/linux/ceph/osd_client.h | |||
@@ -148,6 +148,7 @@ struct ceph_osd_request_target { | |||
148 | int size; | 148 | int size; |
149 | int min_size; | 149 | int min_size; |
150 | bool sort_bitwise; | 150 | bool sort_bitwise; |
151 | bool recovery_deletes; | ||
151 | 152 | ||
152 | unsigned int flags; /* CEPH_OSD_FLAG_* */ | 153 | unsigned int flags; /* CEPH_OSD_FLAG_* */ |
153 | bool paused; | 154 | bool paused; |
diff --git a/include/linux/ceph/osdmap.h b/include/linux/ceph/osdmap.h index a0996cb9faed..af3444a5bfdd 100644 --- a/include/linux/ceph/osdmap.h +++ b/include/linux/ceph/osdmap.h | |||
@@ -272,6 +272,8 @@ bool ceph_is_new_interval(const struct ceph_osds *old_acting, | |||
272 | u32 new_pg_num, | 272 | u32 new_pg_num, |
273 | bool old_sort_bitwise, | 273 | bool old_sort_bitwise, |
274 | bool new_sort_bitwise, | 274 | bool new_sort_bitwise, |
275 | bool old_recovery_deletes, | ||
276 | bool new_recovery_deletes, | ||
275 | const struct ceph_pg *pgid); | 277 | const struct ceph_pg *pgid); |
276 | bool ceph_osds_changed(const struct ceph_osds *old_acting, | 278 | bool ceph_osds_changed(const struct ceph_osds *old_acting, |
277 | const struct ceph_osds *new_acting, | 279 | const struct ceph_osds *new_acting, |
diff --git a/include/linux/ceph/rados.h b/include/linux/ceph/rados.h index 385db08bb8b2..b8281feda9c7 100644 --- a/include/linux/ceph/rados.h +++ b/include/linux/ceph/rados.h | |||
@@ -158,6 +158,10 @@ extern const char *ceph_osd_state_name(int s); | |||
158 | #define CEPH_OSDMAP_NOTIERAGENT (1<<13) /* disable tiering agent */ | 158 | #define CEPH_OSDMAP_NOTIERAGENT (1<<13) /* disable tiering agent */ |
159 | #define CEPH_OSDMAP_NOREBALANCE (1<<14) /* block osd backfill unless pg is degraded */ | 159 | #define CEPH_OSDMAP_NOREBALANCE (1<<14) /* block osd backfill unless pg is degraded */ |
160 | #define CEPH_OSDMAP_SORTBITWISE (1<<15) /* use bitwise hobject_t sort */ | 160 | #define CEPH_OSDMAP_SORTBITWISE (1<<15) /* use bitwise hobject_t sort */ |
161 | #define CEPH_OSDMAP_REQUIRE_JEWEL (1<<16) /* require jewel for booting osds */ | ||
162 | #define CEPH_OSDMAP_REQUIRE_KRAKEN (1<<17) /* require kraken for booting osds */ | ||
163 | #define CEPH_OSDMAP_REQUIRE_LUMINOUS (1<<18) /* require l for booting osds */ | ||
164 | #define CEPH_OSDMAP_RECOVERY_DELETES (1<<19) /* deletes performed during recovery instead of peering */ | ||
161 | 165 | ||
162 | /* | 166 | /* |
163 | * The error code to return when an OSD can't handle a write | 167 | * The error code to return when an OSD can't handle a write |