]> git.ipfire.org Git - thirdparty/mdadm.git/commit
mdadm: drop get_required_spare_criteria()
authorMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Thu, 29 Feb 2024 11:52:06 +0000 (12:52 +0100)
committerMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Mon, 11 Mar 2024 10:06:18 +0000 (11:06 +0100)
commitf656201188d73cdc2726265f1348f8ffbf7587be
tree95b1da3d064b0e15e5ba4fb2f43a8ed101c12059
parent0c0f09cb035b6a27a1d11c54836742a9945a5014
mdadm: drop get_required_spare_criteria()

Only IMSM implements get_spare_criteria, so load_super() in
get_required_spare_criteria() is dead code. It is moved inside
metadata handler, because only IMSM implements it.

Give possibility to provide devnode to be opened. With that we can hide
load_container() used only to fill spare criteria inside handler
and simplify implementation in generic code.

Add helper function for testing spare criteria in Incremental and
error messages.

File descriptor in get_spare_criteria_imsm() is always opened on purpose.
New functionality added in next patches will require it. For the same
reason, function is moved to other place.

No functional changes.

Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Incremental.c
Monitor.c
mdadm.h
super-intel.c