diff options
author | Lars Ellenberg <lars.ellenberg@linbit.com> | 2011-01-24 09:11:01 -0500 |
---|---|---|
committer | Philipp Reisner <philipp.reisner@linbit.com> | 2011-03-10 05:48:13 -0500 |
commit | fdda6544ad4d3284246e717b7108f7f497b45295 (patch) | |
tree | e144b5e54258bd3603c80304b4a984a4a9153894 /drivers/block/drbd/drbd_receiver.c | |
parent | e99dc367b3aafb1ce2d5d92e94834d07b299e1d7 (diff) |
drbd: improve log message if received sector offset exceeds local capacity
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_receiver.c')
-rw-r--r-- | drivers/block/drbd/drbd_receiver.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/block/drbd/drbd_receiver.c b/drivers/block/drbd/drbd_receiver.c index 9e9fc3413137..3d62ac7cdc4a 100644 --- a/drivers/block/drbd/drbd_receiver.c +++ b/drivers/block/drbd/drbd_receiver.c | |||
@@ -1267,7 +1267,8 @@ read_in_block(struct drbd_conf *mdev, u64 id, sector_t sector, int data_size) __ | |||
1267 | /* even though we trust out peer, | 1267 | /* even though we trust out peer, |
1268 | * we sometimes have to double check. */ | 1268 | * we sometimes have to double check. */ |
1269 | if (sector + (data_size>>9) > capacity) { | 1269 | if (sector + (data_size>>9) > capacity) { |
1270 | dev_err(DEV, "capacity: %llus < sector: %llus + size: %u\n", | 1270 | dev_err(DEV, "request from peer beyond end of local disk: " |
1271 | "capacity: %llus < sector: %llus + size: %u\n", | ||
1271 | (unsigned long long)capacity, | 1272 | (unsigned long long)capacity, |
1272 | (unsigned long long)sector, data_size); | 1273 | (unsigned long long)sector, data_size); |
1273 | return NULL; | 1274 | return NULL; |