Don't use exit(ERANGE)

mdadm uses smaller exit codes like 0,1,2,3,4.
Using ERANGE is inconsistent and not helpful.
So change it to a more consistent number.

Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
This commit is contained in:
NeilBrown 2017-08-04 15:30:02 +10:00 committed by Jes Sorensen
parent 6438c249c4
commit dcd24efcfa
1 changed files with 1 additions and 1 deletions

View File

@ -619,7 +619,7 @@ int main(int argc, char *argv[])
c.homecluster = optarg;
if (strlen(c.homecluster) > 64) {
pr_err("Cluster name too big.\n");
exit(ERANGE);
exit(2);
}
continue;
case O(CREATE,'x'): /* number of spare (eXtra) disks */