diff options
author | Neil Brown <neilb@suse.de> | 2006-05-19 05:48:49 +0200 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2006-05-19 05:48:49 +0200 |
commit | 751406f361dd6d4d8d9253bf580120f17f61dcbd (patch) | |
tree | 3cb98d93fd2d510243ad675cb03879328a5a4b11 /Examine.c | |
parent | Arrange the 'auto' setting in mdadm.conf can choose default type. (diff) | |
download | mdadm-751406f361dd6d4d8d9253bf580120f17f61dcbd.tar.xz mdadm-751406f361dd6d4d8d9253bf580120f17f61dcbd.zip |
Fix incorrect error status from --examine --scan
Signed-off-by: Neil Brown <neilb@suse.de>
Diffstat (limited to 'Examine.c')
-rw-r--r-- | Examine.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -72,10 +72,11 @@ int Examine(mddev_dev_t devlist, int brief, int scan, int SparcAdjust, struct su fd = dev_open(devlist->devname, O_RDONLY); if (fd < 0) { - if (!scan) + if (!scan) { fprintf(stderr,Name ": cannot open %s: %s\n", devlist->devname, strerror(errno)); - err = 1; + err = 1; + } } else { if (!st) |