diff options
author | NeilBrown <neilb@suse.com> | 2017-08-04 07:30:02 +0200 |
---|---|---|
committer | Jes Sorensen <jsorensen@fb.com> | 2017-08-16 14:25:07 +0200 |
commit | dcd24efcfab50c3c298d9b1c941edb6954c2677e (patch) | |
tree | 4e17343ab3d01fac8f1e6f68088689a0443e399d /mdadm.c | |
parent | super1: only set clustered flag when bitmap is present (diff) | |
download | mdadm-dcd24efcfab50c3c298d9b1c941edb6954c2677e.tar.xz mdadm-dcd24efcfab50c3c298d9b1c941edb6954c2677e.zip |
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>
Diffstat (limited to 'mdadm.c')
-rw-r--r-- | mdadm.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 */ |