drbd: bail out if a config requrest is over-determined, and not matching
authorLars Ellenberg <lars.ellenberg@linbit.com>
Mon, 14 Mar 2011 12:58:03 +0000 (13:58 +0100)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Sat, 3 Nov 2012 23:16:21 +0000 (00:16 +0100)
commit527f4b24e51194a79f89ce5ce523236be31c511d
tree29234e52443e3432ceaf87f7e77d802f0055ad92
parent38f19616d2c6d4e0ab2de01e4c2f159cd5aa8b49
drbd: bail out if a config requrest is over-determined, and not matching

We have resources resp. connections, volumes, and minor numbers.
A config request may specifies all three of them.
If it turns out that the minor belongs to a different connection, or a
different volume number in the same connection, that configuration
request is invalid.

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