diff options
author | Heinz Mauelshagen <heinzm@redhat.com> | 2016-08-09 14:55:35 +0200 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2016-08-16 16:22:24 -0400 |
commit | a3c06a389751192fdcbcdd8bba57bdb856eafe68 (patch) | |
tree | b8bebb01e81cb0a22a19b5b04df0b8ae78b67dd1 /certs | |
parent | 31e10a41203dbc95e0c1e81ef49ad1773a50d4f9 (diff) | |
download | lwn-a3c06a389751192fdcbcdd8bba57bdb856eafe68.tar.gz lwn-a3c06a389751192fdcbcdd8bba57bdb856eafe68.zip |
dm raid: enhance attempt_restore_of_faulty_devices() to support more devices
attempt_restore_of_faulty_devices() is limited to 64 when it should support
the new maximum of 253 when identifying any failed devices. It clears any
revivable devices via an MD personality hot remove and add cylce to allow
for their recovery.
Address by using existing functions to retrieve and update all failed
devices' bitfield members in the dm raid superblocks on all RAID devices
and check for any devices to clear in it.
Whilst on it, don't call attempt_restore_of_faulty_devices() for any MD
personality not providing disk hot add/remove methods (i.e. raid0 now),
because such personalities don't support reviving of failed disks.
Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'certs')
0 files changed, 0 insertions, 0 deletions