drbd: on reconfiguration requests, mind the SET_DEFAULTS flag
authorLars Ellenberg <lars.ellenberg@linbit.com>
Wed, 27 Apr 2011 19:09:55 +0000 (21:09 +0200)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Thu, 8 Nov 2012 15:50:38 +0000 (16:50 +0100)
commit5979e36155f7875f0544f3c696f8ce863417cc68
treecb9433d8980b19659bc26517a71fdfeb91d624dc
parent0fd0ea064c30022577f62d9060889d964123be6f
drbd: on reconfiguration requests, mind the SET_DEFAULTS flag

The DRBD_GENL_F_SET_DEFAULTS flag was ignored
for drbd_adm_disk_opts() and drbd_adm_net_opts().

Factor out drbd_set_*_defaults() helper functions,
and call them appropriately.

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