svn commit: r187360 - head/sbin/recoverdisk
Poul-Henning Kamp
phk at FreeBSD.org
Sat Jan 17 03:57:33 PST 2009
Author: phk
Date: Sat Jan 17 11:57:32 2009
New Revision: 187360
URL: http://svn.freebsd.org/changeset/base/187360
Log:
Bail on ENXIO, you won't get any further any way.
Submitted by: tobez
Modified:
head/sbin/recoverdisk/recoverdisk.c
Modified: head/sbin/recoverdisk/recoverdisk.c
==============================================================================
--- head/sbin/recoverdisk/recoverdisk.c Sat Jan 17 11:19:15 2009 (r187359)
+++ head/sbin/recoverdisk/recoverdisk.c Sat Jan 17 11:57:32 2009 (r187360)
@@ -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;
More information about the svn-src-all
mailing list