diff options
author | Neil Brown <neilb@suse.de> | 2002-04-11 01:36:14 +0000 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2002-04-11 01:36:14 +0000 |
commit | b83d95f362ff41e5ce63baa3bbcf0a76ea1f15aa (patch) | |
tree | 0663f165bb9b4c94ed196a9e35b05ac2f5466e27 /mdadm.c | |
parent | c913b90e6dba02613fe24d3e7f0b3f251a01bc50 (diff) | |
download | mdadm-b83d95f362ff41e5ce63baa3bbcf0a76ea1f15aa.tar.gz mdadm-b83d95f362ff41e5ce63baa3bbcf0a76ea1f15aa.tar.xz mdadm-b83d95f362ff41e5ce63baa3bbcf0a76ea1f15aa.zip |
mdadm-0.8.2mdadm-0.8.2
Diffstat (limited to 'mdadm.c')
-rw-r--r-- | mdadm.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -267,7 +267,7 @@ int main(int argc, char *argv[]) exit(2); } if (sparedisks > 0 && level < 1 && level >= -1) { - fprintf(stderr, Name ": raid level %s is incompatible with spare-disks setting.\n", + fprintf(stderr, Name ": raid level %s is incompatible with spare-devices setting.\n", optarg); exit(2); } @@ -303,13 +303,13 @@ int main(int argc, char *argv[]) case O(CREATE,'n'): case O(BUILD,'n'): /* number of raid disks */ if (raiddisks) { - fprintf(stderr, Name ": raid-disks set twice: %d and %s\n", + fprintf(stderr, Name ": raid-devices set twice: %d and %s\n", raiddisks, optarg); exit(2); } raiddisks = strtol(optarg, &c, 10); if (!optarg[0] || *c || raiddisks<=0 || raiddisks > MD_SB_DISKS) { - fprintf(stderr, Name ": invalid number of raid disks: %s\n", + fprintf(stderr, Name ": invalid number of raid devices: %s\n", optarg); exit(2); } @@ -318,18 +318,18 @@ int main(int argc, char *argv[]) case O(CREATE,'x'): /* number of spare (eXtra) discs */ if (sparedisks) { - fprintf(stderr,Name ": spare-disks set twice: %d and %s\n", + fprintf(stderr,Name ": spare-devices set twice: %d and %s\n", sparedisks, optarg); exit(2); } if (level > -10 && level <= 0 && level >= -1) { - fprintf(stderr, Name ": spare-disks setting is incompatible with raid level %d\n", + fprintf(stderr, Name ": spare-devices setting is incompatible with raid level %d\n", level); exit(2); } sparedisks = strtol(optarg, &c, 10); if (!optarg[0] || *c || sparedisks < 0 || sparedisks > MD_SB_DISKS - raiddisks) { - fprintf(stderr, Name ": invalid number of spare disks: %s\n", + fprintf(stderr, Name ": invalid number of spare-devices: %s\n", optarg); exit(2); } @@ -595,7 +595,7 @@ int main(int argc, char *argv[]) fprintf(stderr, Name ": No devices listed in %s\n", configfile?configfile:DefaultConfFile); exit(1); } - rv = Examine(devlist, devlist?brief:!verbose, scan); + rv = Examine(devlist, scan?!verbose:brief, scan); } else { if (devlist == NULL) { if ((devmode == 'S' ||devmode=='D') && scan) { |