drbd: distribute former syncer_conf settings to disk, connection, and resource level
authorLars Ellenberg <lars.ellenberg@linbit.com>
Wed, 23 Mar 2011 13:31:09 +0000 (14:31 +0100)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Thu, 8 Nov 2012 15:44:20 +0000 (16:44 +0100)
commitf399002e68e626e7bc443e6fcab1772704cc197f
tree0d6abf88f3ebf5c619994c929d5baf728a3f579c
parent6b75dced005c7f06b81934167e36bcfc690cc3a7
drbd: distribute former syncer_conf settings to disk, connection, and resource level

This commit breaks the API again.

Move per-volume former syncer options into disk_conf.
Move per-connection former syncer options into net_conf.
Renamed the remainign sync_conf to res_opts

Syncer settings have been changeable at runtime, so we need to prepare
for these settings to be runtime-changeable in their new home as well.

Introduce new configuration operations, and share the netlink attribute
between "attach" (create new disk) and "disk-opts" (change options).
Same for "connect" and "net-opts".

Some fields cannot be changed at runtime, however.
Introduce a new flag GENLA_F_INVARIANT to be able to trigger on that in
the generated validation and assignment functions.

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
drivers/block/drbd/drbd_receiver.c
drivers/block/drbd/drbd_state.c
drivers/block/drbd/drbd_worker.c
include/linux/drbd_genl.h
include/linux/drbd_limits.h
include/linux/genl_magic_func.h
include/linux/genl_magic_struct.h