]> git.karo-electronics.de Git - linux-beck.git/commitdiff
drbd: improve log message if received sector offset exceeds local capacity
authorLars Ellenberg <lars.ellenberg@linbit.com>
Mon, 24 Jan 2011 14:11:01 +0000 (15:11 +0100)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Thu, 10 Mar 2011 10:48:13 +0000 (11:48 +0100)
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
drivers/block/drbd/drbd_receiver.c

index 9e9fc341313761e20a9ecacf765b8a2230ebb969..3d62ac7cdc4a1c35a8ee860b4ab1a5b4beff13ba 100644 (file)
@@ -1267,7 +1267,8 @@ read_in_block(struct drbd_conf *mdev, u64 id, sector_t sector, int data_size) __
        /* even though we trust out peer,
         * we sometimes have to double check. */
        if (sector + (data_size>>9) > capacity) {
-               dev_err(DEV, "capacity: %llus < sector: %llus + size: %u\n",
+               dev_err(DEV, "request from peer beyond end of local disk: "
+                       "capacity: %llus < sector: %llus + size: %u\n",
                        (unsigned long long)capacity,
                        (unsigned long long)sector, data_size);
                return NULL;