summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDoug Ledford <dledford@redhat.com>2010-04-16 18:12:26 -0400
committerDoug Ledford <dledford@redhat.com>2010-04-16 18:12:26 -0400
commitbdf05eca34d74d8220031dc8e672ba4d9209a800 (patch)
treef9797a9330e2814d7223cba8339e95b509053d9e
parent0dba81619de300d36684371b7aaf22e69da1df91 (diff)
downloadmdadm-bdf05eca34d74d8220031dc8e672ba4d9209a800.tar.gz
mdadm-bdf05eca34d74d8220031dc8e672ba4d9209a800.tar.xz
mdadm-bdf05eca34d74d8220031dc8e672ba4d9209a800.zip
Use the action helper functions in a few more places
Signed-off-by: Doug Ledford <dledford@redhat.com>
-rw-r--r--config.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/config.c b/config.c
index 30764c9..3242f5f 100644
--- a/config.c
+++ b/config.c
@@ -855,8 +855,7 @@ void domainline(char *line)
}
}
/* Some sanity checks now that all the options are parsed */
- if ((de->action & force) &&
- ((de->action & action_mask) <= incremental)) {
+ if (force(de) && (action(de) <= incremental)) {
fprintf(stderr, Name ": force makes no sense with ignore or "
"incremental, removing.\n");
de->action &= action_mask;
@@ -867,7 +866,7 @@ void domainline(char *line)
free(de->spare_group);
de->spare_group = NULL;
}
- if ((de->action & action_mask) == partition) {
+ if (action(de) == partition) {
for (prev_path = NULL, path = de->paths; path; )
if ((strstr(path->path, "part") != NULL) ||
(path->path[strlen(path->path) - 1] == '*')) {