]> git.ipfire.org Git - thirdparty/mdadm.git/commit - super-intel.c
imsm: FIX: Spare disk has wrong serial after takeover
authorAdam Kwolek <adam.kwolek@intel.com>
Thu, 15 Sep 2011 16:38:39 +0000 (18:38 +0200)
committerNeilBrown <neilb@suse.de>
Mon, 19 Sep 2011 03:13:07 +0000 (13:13 +1000)
commita8619d23b863cdce388527e1da12fea56f56c891
tree368dd7dc6a36cfffa269380fe3a3a3f6f770ab48
parente5e54ff1d974079f2e0e05f7e0dc2f94b6d6b572
imsm: FIX: Spare disk has wrong serial after takeover

Takeover marks disk as failed and adds to serial ':0' string and then
turns it in to spare. This causes that when new spare is about to be used,
it cannot be found due to different disk serial number.

Restore disk serial number to avoid this problem.

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