]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit - drivers/block/drbd/drbd_nl.c
drbd: on attach, enforce clean meta data
authorLars Ellenberg <lars.ellenberg@linbit.com>
Tue, 5 Jul 2011 18:59:26 +0000 (20:59 +0200)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Thu, 8 Nov 2012 15:57:51 +0000 (16:57 +0100)
commitd5d7ebd42250620a6da2a8f6943c024391433488
tree1025faf28644b437a845f21606a1c2db83b54a3c
parentcdfda633d235028e9b27381dedb65416409e8729
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>
drivers/block/drbd/drbd_actlog.c
drivers/block/drbd/drbd_int.h
drivers/block/drbd/drbd_main.c
drivers/block/drbd/drbd_nl.c
drivers/block/drbd/drbd_state.c
include/linux/drbd.h