linux/drivers/block/drbd
Lars Ellenberg d5d7ebd422 drbd: on attach, enforce clean meta data
Detection of unclean shutdown has moved into user space.

The kernel code will, whenever it updates the meta data, mark it as
"unclean", and will refuse to attach to such unclean meta data.

"drbdadm up" now schedules "drbdmeta apply-al", which will apply
the activity log to the bitmap, and/or reinitialize it, if necessary,
as well as set a "clean" indicator flag.

This moves a bit code out of kernel space.
As a side effect, it also prevents some 8.3 module from accidentally
ignoring the 8.4 style activity log, if someone should downgrade,
whether on purpose, or accidentally because he changed kernel versions
without providing an 8.4 for the new kernel, and the new kernel comes
with in-tree 8.3.

Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
2012-11-08 16:57:51 +01:00
..
Kconfig drbd: Kconfig fix 2009-12-29 17:38:28 +01:00
Makefile drbd: Split off netlink mandatory attribute handling into separate file 2012-11-08 16:57:45 +01:00
drbd_actlog.c drbd: on attach, enforce clean meta data 2012-11-08 16:57:51 +01:00
drbd_bitmap.c drbd: detach from frozen backing device 2012-11-08 16:57:50 +01:00
drbd_int.h drbd: on attach, enforce clean meta data 2012-11-08 16:57:51 +01:00
drbd_interval.c drbd: Iterate over all overlapping intervals in a tree 2011-10-14 16:47:37 +02:00
drbd_interval.h drbd: Iterate over all overlapping intervals in a tree 2011-10-14 16:47:37 +02:00
drbd_main.c drbd: on attach, enforce clean meta data 2012-11-08 16:57:51 +01:00
drbd_nl.c drbd: on attach, enforce clean meta data 2012-11-08 16:57:51 +01:00
drbd_nla.c drbd: Split off netlink mandatory attribute handling into separate file 2012-11-08 16:57:45 +01:00
drbd_nla.h drbd: Split off netlink mandatory attribute handling into separate file 2012-11-08 16:57:45 +01:00
drbd_proc.c drbd: cosmetic: fix accidental division instead of modulo when pretty printing 2012-11-08 16:57:43 +01:00
drbd_receiver.c drbd: detach from frozen backing device 2012-11-08 16:57:50 +01:00
drbd_req.c drbd: detach from frozen backing device 2012-11-08 16:57:50 +01:00
drbd_req.h drbd: detach from frozen backing device 2012-11-08 16:57:50 +01:00
drbd_state.c drbd: on attach, enforce clean meta data 2012-11-08 16:57:51 +01:00
drbd_state.h drbd: Improved logging of state changes 2012-11-08 16:45:06 +01:00
drbd_strings.c drbd: Allow volumes to become primary only on one side 2012-11-04 00:16:31 +01:00
drbd_vli.h Fix common misspellings 2011-03-31 11:26:23 -03:00
drbd_worker.c drbd: detach from frozen backing device 2012-11-08 16:57:50 +01:00
drbd_wrappers.h drbd: Split off netlink mandatory attribute handling into separate file 2012-11-08 16:57:45 +01:00