aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/drbd/drbd_int.h
diff options
context:
space:
mode:
authorPhilipp Reisner <philipp.reisner@linbit.com>2010-07-06 11:25:54 -0400
committerPhilipp Reisner <philipp.reisner@linbit.com>2010-10-14 12:38:13 -0400
commit8e26f9ccb9be00fdb33551a34c8f6029e89ab79f (patch)
tree0a16e6a5c9f5c42cbc375ac8e3e180011b214743 /drivers/block/drbd/drbd_int.h
parent9a31d7164d409ca59cfadb7957ac7b0acf4545b8 (diff)
drbd: New sync_param packet, that includes the parameters of the new controller
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com> Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Diffstat (limited to 'drivers/block/drbd/drbd_int.h')
-rw-r--r--drivers/block/drbd/drbd_int.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/block/drbd/drbd_int.h b/drivers/block/drbd/drbd_int.h
index f84ffb17a7e5..fd2cdd45f155 100644
--- a/drivers/block/drbd/drbd_int.h
+++ b/drivers/block/drbd/drbd_int.h
@@ -451,6 +451,17 @@ struct p_rs_param_89 {
451 char csums_alg[SHARED_SECRET_MAX]; 451 char csums_alg[SHARED_SECRET_MAX];
452} __packed; 452} __packed;
453 453
454struct p_rs_param_95 {
455 struct p_header head;
456 u32 rate;
457 char verify_alg[SHARED_SECRET_MAX];
458 char csums_alg[SHARED_SECRET_MAX];
459 u32 c_plan_ahead;
460 u32 c_delay_target;
461 u32 c_fill_target;
462 u32 c_max_rate;
463} __packed;
464
454enum drbd_conn_flags { 465enum drbd_conn_flags {
455 CF_WANT_LOSE = 1, 466 CF_WANT_LOSE = 1,
456 CF_DRY_RUN = 2, 467 CF_DRY_RUN = 2,
@@ -610,6 +621,7 @@ union p_polymorph {
610 struct p_barrier barrier; 621 struct p_barrier barrier;
611 struct p_barrier_ack barrier_ack; 622 struct p_barrier_ack barrier_ack;
612 struct p_rs_param_89 rs_param_89; 623 struct p_rs_param_89 rs_param_89;
624 struct p_rs_param_95 rs_param_95;
613 struct p_protocol protocol; 625 struct p_protocol protocol;
614 struct p_sizes sizes; 626 struct p_sizes sizes;
615 struct p_uuids uuids; 627 struct p_uuids uuids;
@@ -1268,6 +1280,8 @@ struct bm_extent {
1268 * Bit 1 ==> local node thinks this block needs to be synced. 1280 * Bit 1 ==> local node thinks this block needs to be synced.
1269 */ 1281 */
1270 1282
1283#define SLEEP_TIME (HZ/10)
1284
1271#define BM_BLOCK_SHIFT 12 /* 4k per bit */ 1285#define BM_BLOCK_SHIFT 12 /* 4k per bit */
1272#define BM_BLOCK_SIZE (1<<BM_BLOCK_SHIFT) 1286#define BM_BLOCK_SIZE (1<<BM_BLOCK_SHIFT)
1273/* (9+3) : 512 bytes @ 8 bits; representing 16M storage 1287/* (9+3) : 512 bytes @ 8 bits; representing 16M storage