]> git.ipfire.org Git - thirdparty/mdadm.git/commit - super-intel.c
FIX: Support metadata changes rollback
authorAdam Kwolek <adam.kwolek@intel.com>
Fri, 13 Apr 2012 14:51:59 +0000 (16:51 +0200)
committerNeilBrown <neilb@suse.de>
Tue, 17 Apr 2012 02:33:37 +0000 (12:33 +1000)
commit016e00f54635138ce34b9e4ba18d37e182288bd1
treefcf5ea4e39c642ae7d94eab4168d12f9c5d762b9
parent54397ed97af065b1e3a12d6beab09bc05a07a9d0
FIX: Support metadata changes rollback

Function reshape_super() guards metadata changes.
It is used to apply changes rollback in error case also.
As change (apply and rollback) can be not bi-directional reshape_super()
has to know if current action is metadata change that should be guarded
using metadata restrictions, or this is metadata rollback change
executed due to error occurrence.

In second case change has to be unconditional.

Signed-off-by: Adam Kwolek <adam.kwolek@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Grow.c
mdadm.h
super-intel.c