diff options
author | Dan Williams <dan.j.williams@intel.com> | 2011-08-25 19:14:24 -0700 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2011-08-30 10:49:42 +1000 |
commit | b276dd33c74a51598e37fc72e6fb8f5ebd6620f2 (patch) | |
tree | 2bd4b442e3124e84a38e2937ac9e73bbefa855cb /managemon.c | |
parent | d8924477b7fc513a54249b1b0c617adbfb78c7fe (diff) | |
download | mdadm-b276dd33c74a51598e37fc72e6fb8f5ebd6620f2.tar.gz |
imsm: fix reserved sectors for spares
Different OROMs reserve different amounts of space for the migration area.
When activating a spare minimize the reserved space otherwise a valid spare
can be prevented from joining an array with a migration area smaller than
IMSM_RESERVED_SECTORS.
This may result in an array that cannot be reshaped, but that is less
surprising than not being able to rebuild a degraded array.
imsm_reserved_sectors() already reports the minimal value which adds to
the confusion when trying rebuild an array because mdadm -E indicates
that the device has enough space.
Cc: Anna Czarnowska <anna.czarnowska@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'managemon.c')
0 files changed, 0 insertions, 0 deletions