]> git.karo-electronics.de Git - karo-tx-linux.git/commit
DM RAID: Record and handle missing devices
authorJonathan Brassow <jbrassow@redhat.com>
Tue, 24 Apr 2012 00:57:59 +0000 (10:57 +1000)
committerNeilBrown <neilb@suse.de>
Tue, 24 Apr 2012 00:57:59 +0000 (10:57 +1000)
commitf31899be4097229bb4471087049e5b108f88b4c8
treea39e478eed618e1bc67af99ac6a9bdf9749f196d
parenta0d73aff0efe7f91605b62e4e182a45b9057d2f1
DM RAID: Record and handle missing devices

Missing dm-raid devices should be recorded in the superblock

When specifying the devices that compose a DM RAID array, it is possible to denote
failed or missing devices with '-'s.  When this occurs, we must record this in the
superblock.  We do this by checking if the array position's data device is missing
and then forcing MD to record the superblock by setting 'MD_CHANGE_DEVS' in
'raid_resume'.  If we do not cause the superblock to be rewritten by the resume
function, it is possible for a stale superblock to be written by an out-going
in-active table (during 'raid_dtr').

Signed-off-by: Jonathan Brassow <jbrassow@redhat.com>
Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/dm-raid.c