summaryrefslogtreecommitdiffstats
path: root/Examine.c
diff options
context:
space:
mode:
authorMateusz Kusiak <mateusz.kusiak@intel.com>2023-01-02 09:35:22 +0100
committerJes Sorensen <jes@trained-monkey.org>2023-01-04 16:20:58 +0100
commit03312b5240438ffc3b63114bdc87e911222f01e5 (patch)
tree6efdf29991cfc40cdbc320f31c33bf158b05fd0f /Examine.c
parentsuper-intel: refactor the code for enum (diff)
downloadmdadm-03312b5240438ffc3b63114bdc87e911222f01e5.tar.xz
mdadm-03312b5240438ffc3b63114bdc87e911222f01e5.zip
Change update to enum in update_super and update_subarray
Use already existing enum, change update_super and update_subarray update to enum globally. Refactor function references also. Remove code specific options from update_options. Signed-off-by: Mateusz Kusiak <mateusz.kusiak@intel.com> Signed-off-by: Jes Sorensen <jes@trained-monkey.org>
Diffstat (limited to 'Examine.c')
-rw-r--r--Examine.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Examine.c b/Examine.c
index 9574a3cc..c9605a60 100644
--- a/Examine.c
+++ b/Examine.c
@@ -117,7 +117,7 @@ int Examine(struct mddev_dev *devlist,
}
if (c->SparcAdjust)
- st->ss->update_super(st, NULL, "sparc2.2",
+ st->ss->update_super(st, NULL, UOPT_SPARC22,
devlist->devname, 0, 0, NULL);
/* Ok, its good enough to try, though the checksum could be wrong */