summaryrefslogtreecommitdiffstats
path: root/sbin/recoverdisk
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2009-01-17 11:57:32 +0000
committerphk <phk@FreeBSD.org>2009-01-17 11:57:32 +0000
commita0ad11199f569d75bdad57b8e31afd3da702fbd5 (patch)
tree8d52b33aa3f5315ee11a22de09c8fb2b513f61a3 /sbin/recoverdisk
parent469b3b8461606b261d52bf8bbf32a53df5ef524a (diff)
downloadFreeBSD-src-a0ad11199f569d75bdad57b8e31afd3da702fbd5.zip
FreeBSD-src-a0ad11199f569d75bdad57b8e31afd3da702fbd5.tar.gz
Bail on ENXIO, you won't get any further any way.
Submitted by: tobez
Diffstat (limited to 'sbin/recoverdisk')
-rw-r--r--sbin/recoverdisk/recoverdisk.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sbin/recoverdisk/recoverdisk.c b/sbin/recoverdisk/recoverdisk.c
index 0dc5d7c..6353635 100644
--- a/sbin/recoverdisk/recoverdisk.c
+++ b/sbin/recoverdisk/recoverdisk.c
@@ -276,7 +276,10 @@ main(int argc, char * const argv[])
lp->len -= i;
continue;
}
- printf("\n%jd %zu failed %d\n", lp->start, i, errno);
+ printf("\n%jd %zu failed (%s)\n",
+ lp->start, i, strerror(errno));
+ if (errno == ENXIO)
+ aborting = 1;
new_lump(lp->start, i, lp->state + 1);
lp->start += i;
lp->len -= i;
OpenPOWER on IntegriCloud