summaryrefslogtreecommitdiffstats
path: root/mdadm.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.com>2017-08-04 07:30:02 +0200
committerJes Sorensen <jsorensen@fb.com>2017-08-16 14:25:07 +0200
commitdcd24efcfab50c3c298d9b1c941edb6954c2677e (patch)
tree4e17343ab3d01fac8f1e6f68088689a0443e399d /mdadm.c
parentsuper1: only set clustered flag when bitmap is present (diff)
downloadmdadm-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mdadm.c b/mdadm.c
index 70b16f22..d80aab36 100644
--- a/mdadm.c
+++ b/mdadm.c
@@ -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 */