diff options
author | Doug Ledford <dledford@redhat.com> | 2010-04-16 18:12:26 -0400 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2010-04-16 18:12:26 -0400 |
commit | bdf05eca34d74d8220031dc8e672ba4d9209a800 (patch) | |
tree | f9797a9330e2814d7223cba8339e95b509053d9e | |
parent | 0dba81619de300d36684371b7aaf22e69da1df91 (diff) | |
download | mdadm-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.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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] == '*')) { |