]> git.ipfire.org Git - thirdparty/mdadm.git/commit
mdadm: test_and_add device policies implementation
authorMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Thu, 29 Feb 2024 11:52:11 +0000 (12:52 +0100)
committerMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Mon, 11 Mar 2024 10:08:20 +0000 (11:08 +0100)
commit5a2e194cb31569880a26356b8594ddca6e3b3828
tree6f06c4a8ae4ad961bb382358520c3a1637115984
parent1fef0c6ff54c2710f75a239dd8a5e0ffb0068e86
mdadm: test_and_add device policies implementation

Add support for three scenarios:
- obtaining array wide policies via fd,
- obtaining array wide policies via struct mdinfo,
- getting policies for particular drive from the request.

Add proper functions and make them extern. These functions are used
in next patches.

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