summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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