aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/block/drbd/drbd_receiver.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/drivers/block/drbd/drbd_receiver.c b/drivers/block/drbd/drbd_receiver.c
index d55a3cb21c31..7218750d2937 100644
--- a/drivers/block/drbd/drbd_receiver.c
+++ b/drivers/block/drbd/drbd_receiver.c
@@ -3200,8 +3200,8 @@ static int ignore_remaining_packet(struct drbd_tconn *tconn, struct packet_info
3200 */ 3200 */
3201static int config_unknown_volume(struct drbd_tconn *tconn, struct packet_info *pi) 3201static int config_unknown_volume(struct drbd_tconn *tconn, struct packet_info *pi)
3202{ 3202{
3203 conn_warn(tconn, "Volume %u unknown; ignoring %s packet\n", 3203 conn_warn(tconn, "%s packet received for volume %u, which is not configured locally\n",
3204 pi->vnr, cmdname(pi->cmd)); 3204 cmdname(pi->cmd), pi->vnr);
3205 return ignore_remaining_packet(tconn, pi); 3205 return ignore_remaining_packet(tconn, pi);
3206} 3206}
3207 3207
@@ -4256,13 +4256,15 @@ static void drbdd(struct drbd_tconn *tconn)
4256 4256
4257 cmd = &drbd_cmd_handler[pi.cmd]; 4257 cmd = &drbd_cmd_handler[pi.cmd];
4258 if (unlikely(pi.cmd >= ARRAY_SIZE(drbd_cmd_handler) || !cmd->fn)) { 4258 if (unlikely(pi.cmd >= ARRAY_SIZE(drbd_cmd_handler) || !cmd->fn)) {
4259 conn_err(tconn, "unknown packet type %d, l: %d!\n", pi.cmd, pi.size); 4259 conn_err(tconn, "Unexpected data packet %s (0x%04x)",
4260 cmdname(pi.cmd), pi.cmd);
4260 goto err_out; 4261 goto err_out;
4261 } 4262 }
4262 4263
4263 shs = cmd->pkt_size; 4264 shs = cmd->pkt_size;
4264 if (pi.size > shs && !cmd->expect_payload) { 4265 if (pi.size > shs && !cmd->expect_payload) {
4265 conn_err(tconn, "No payload expected %s l:%d\n", cmdname(pi.cmd), pi.size); 4266 conn_err(tconn, "No payload expected %s l:%d\n",
4267 cmdname(pi.cmd), pi.size);
4266 goto err_out; 4268 goto err_out;
4267 } 4269 }
4268 4270
@@ -4474,7 +4476,7 @@ static int drbd_do_features(struct drbd_tconn *tconn)
4474 4476
4475 if (pi.cmd != P_CONNECTION_FEATURES) { 4477 if (pi.cmd != P_CONNECTION_FEATURES) {
4476 conn_err(tconn, "expected ConnectionFeatures packet, received: %s (0x%04x)\n", 4478 conn_err(tconn, "expected ConnectionFeatures packet, received: %s (0x%04x)\n",
4477 cmdname(pi.cmd), pi.cmd); 4479 cmdname(pi.cmd), pi.cmd);
4478 return -1; 4480 return -1;
4479 } 4481 }
4480 4482
@@ -4583,7 +4585,7 @@ static int drbd_do_auth(struct drbd_tconn *tconn)
4583 4585
4584 if (pi.cmd != P_AUTH_CHALLENGE) { 4586 if (pi.cmd != P_AUTH_CHALLENGE) {
4585 conn_err(tconn, "expected AuthChallenge packet, received: %s (0x%04x)\n", 4587 conn_err(tconn, "expected AuthChallenge packet, received: %s (0x%04x)\n",
4586 cmdname(pi.cmd), pi.cmd); 4588 cmdname(pi.cmd), pi.cmd);
4587 rv = 0; 4589 rv = 0;
4588 goto fail; 4590 goto fail;
4589 } 4591 }
@@ -4642,7 +4644,7 @@ static int drbd_do_auth(struct drbd_tconn *tconn)
4642 4644
4643 if (pi.cmd != P_AUTH_RESPONSE) { 4645 if (pi.cmd != P_AUTH_RESPONSE) {
4644 conn_err(tconn, "expected AuthResponse packet, received: %s (0x%04x)\n", 4646 conn_err(tconn, "expected AuthResponse packet, received: %s (0x%04x)\n",
4645 cmdname(pi.cmd), pi.cmd); 4647 cmdname(pi.cmd), pi.cmd);
4646 rv = 0; 4648 rv = 0;
4647 goto fail; 4649 goto fail;
4648 } 4650 }
@@ -5192,8 +5194,8 @@ int drbd_asender(struct drbd_thread *thi)
5192 goto reconnect; 5194 goto reconnect;
5193 cmd = &asender_tbl[pi.cmd]; 5195 cmd = &asender_tbl[pi.cmd];
5194 if (pi.cmd >= ARRAY_SIZE(asender_tbl) || !cmd->fn) { 5196 if (pi.cmd >= ARRAY_SIZE(asender_tbl) || !cmd->fn) {
5195 conn_err(tconn, "unknown command %d on meta (l: %d)\n", 5197 conn_err(tconn, "Unexpected meta packet %s (0x%04x)\n",
5196 pi.cmd, pi.size); 5198 cmdname(pi.cmd), pi.cmd);
5197 goto disconnect; 5199 goto disconnect;
5198 } 5200 }
5199 expect = header_size + cmd->pkt_size; 5201 expect = header_size + cmd->pkt_size;