drbd: implicitly create unconfigured devices on sync-after dependencies
authorLars Ellenberg <lars.ellenberg@linbit.com>
Wed, 1 Sep 2010 12:39:30 +0000 (14:39 +0200)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Thu, 14 Oct 2010 16:38:28 +0000 (18:38 +0200)
commitef50a3e34f93a067ada541346be3175e924331a2
tree455fd4a7d4b11ead24b7e297f25b02afabc36c76
parent3f3a9b849d2b703934c07fa17f5eac2dc37c1f6b
drbd: implicitly create unconfigured devices on sync-after dependencies

If pacemaker (for example) decided to initialize minor devices not in
the exact sync-after dependency order, the configuration partially
failed with an error "The sync-after minor number is invalid". (Bugz. #322)

We can avoid that by implicitly creating unconfigured minor devices,
if others depend on them.

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