drbd: fix check for too large lower level device
authorLars Ellenberg <lars.ellenberg@linbit.com>
Mon, 12 Oct 2009 17:07:49 +0000 (19:07 +0200)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Wed, 4 Nov 2009 14:21:00 +0000 (15:21 +0100)
commit1352994b363195ce932749d3518d4dc9a5479fea
tree244a0a02f549a94d0e65f1934ea8f947ccd57547
parentad19bf6e544f4d1abc22d2be130c7d5e4163146f
drbd: fix check for too large lower level device

To check wether we are truncating a very large device due to limited
meta data space, we need to check the ll_dev size.

Also improve the printk to suggest "flexible" or "internal".

Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
drivers/block/drbd/drbd_nl.c