]> git.ipfire.org Git - thirdparty/mdadm.git/commit - mdadm.h
mdadm: Add option validation for --update-subarray
authorMateusz Kusiak <mateusz.kusiak@intel.com>
Mon, 2 Jan 2023 08:35:15 +0000 (09:35 +0100)
committerJes Sorensen <jes@trained-monkey.org>
Wed, 4 Jan 2023 15:20:58 +0000 (10:20 -0500)
commit2568ce89ea5c26225e8984733adc2ea7559d853a
treeff1429fa3379e0a974d34d68aaa1721814bf8c2d
parent7fcbfd7c620e2dcd3b539d18e93cb503ee3a8a62
mdadm: Add option validation for --update-subarray

Subset of options available for "--update" is not same as for "--update-subarray".
Define maps and enum for update options and use them instead of direct comparisons.
Add proper error message.

Signed-off-by: Mateusz Kusiak <mateusz.kusiak@intel.com>
Signed-off-by: Jes Sorensen <jes@trained-monkey.org>
ReadMe.c
maps.c
mdadm.c
mdadm.h